W3cubDocs

/pandas 0.23

pandas.MultiIndex.to_frame

MultiIndex.to_frame(index=True) [source]

Create a DataFrame with the levels of the MultiIndex as columns.

New in version 0.20.0.

Parameters:

index : boolean, default True

Set the index of the returned DataFrame as the original MultiIndex.

Returns:
DataFrame : a DataFrame containing the original MultiIndex data.

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
http://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.MultiIndex.to_frame.html