df2 = pd.DataFrame(np.random.randn(3, 2), columns=list('AB'), index=pd.
    date_range('20000101', periods=3))
df1
df2
pd.concat(dict(df1=df1, df2=df2), axis=1)
python/pandas: how to combine two dataframes into one with hierarchical column index?