columns = pd.MultiIndex.from_arrays(arrays, names=['foo', 'bar'])
df = pd.DataFrame(np.random.randn(2, 6), columns=columns, index=pd.
    date_range('20000103', periods=2))
How to apply hierarchy or multi-index to panda columns