I have three Dataframes : df1, df2, df3
with the same number of "rows" but different number of "columns" and different "column" labels. I want to "merge" them in one single dataframe with the order df1,df2,df3
and keeping the original column labels.
I've read in Combine a list of pandas dataframes to one pandas dataframe that this can be done by:
df = pd.DataFrame.from_dict(map(dict,df_list))
But I cannot fully understand the code. I assume df_list
is:
df_list = [df1,df2,df3]
But what is dict
? A dictionary of df_list
? How to get it?