MultiIndex.to_frame(self, index=True, name=None) [source]
Create a DataFrame with the levels of the MultiIndex as columns.
Column ordering is determined by the DataFrame constructor with data as a dict.
New in version 0.24.0.
| Parameters: |
|
|---|---|
| Returns: |
|
See also
© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.25.0/reference/api/pandas.MultiIndex.to_frame.html