Below is the script that I am using
dfs = [df2,df3,df4,df5,df6]
for i in dfs:
df_merge = pd.merge(df1,i,how='left',on='Date')
print("Shape of df_merge = ",df_merge.shape)
Let us assume the shape of each individual dataframes is (100,2). 'Date' is the common column in all. After using above script and printing I am getting a shape of (100,3) i.e only df6 is getting merged with df1. I need to merge all in one. Any suggestion will be appreciated?