Say I have a data dictionary:
{'df1': name color type Apple Yellow Fruit, 'df2': name color type Banana Red Fruit, 'df3': name color type Chocolate Brown Sweet ......}
And I want to combine them all into one:
name color type Apple Red Fruit Banana Yellow Fruit Chocolate Brown Sweet
I can do it manually as follows:
merge1=pd.merge('df1','df2') merge2=pd.merge('merge1','df3') ...
But is there a way to automatically encrypt the dictionary and merge? Any help is appreciated.
source share