There has been many similar questions but none specifically to this.
I have a list of data frames and I need to merge them together using a unique column (date)
. Field names are different so concat is out.
I can manually use df[0].merge(df[1],on='Date').merge(df[3],on='Date)
etc. to merge each df one by one, but the issue is that the number of data frames in the list differs with user input.
Is there any way to merge that just combines all data frames in a list at one go? Or perhaps some for in loop at does that?
I am using Python 2.7.