Say I have a list of dataframes [df1, df2, df3]
, where each single dataframe looks as follows:
> df1
median std
control 0.4 0.2
experiment 0.2 0.3
How can I create a multi-index dataframe that stitches them together? Like this:
df1 df2 df3
control experiment control experiment control experiment
median 0.4 0.2 ... ... ... ...
std 0.2 0.3 ... ... ... ...