Table Of Contents

Search

Enter search terms or a module, class or function name.

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.
Scroll To Top