b
df1.columns = ['_'.join(col) for col in df1.columns.values]
b2 = b.set_index(['用户手机号', '月份']).unstack('月份')
b2
b3 = b2.swaplevel(axis=1)
b3
b4 = b3.sort_index(axis=1)
b4
pd.DataFrame(index=pd.MultiIndex.from_product([['a','b'],['c','d']]))
df.index.levels