We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Try to the following code, and you will find column labels mismatched with the data in the Excel file :
cols = pd.MultiIndex.from_tuples([('site',''),('2014','height'),('2014','weight')]) df = pd.DataFrame(np.random.randn(10,3), columns=cols) df.to_excel('test.xlsx', index=False)
cols = pd.MultiIndex.from_tuples([('site',''),('2014','height'),('2014','weight')])
df = pd.DataFrame(np.random.randn(10,3), columns=cols)
df.to_excel('test.xlsx', index=False)
I am using pandas v0.16.0.