df.columns = pd.MultiIndex.from_tuples( [("", "") for col in df.columns], names=pivotdf.columns.names ) merged_df = pd.concat([df, pivotdf], axis=1)