Skip to content

Commit 3f78c42

Browse files
matthewgilbertTomAugspurger
authored andcommitted
DOC: Add section on MultiIndex.to_frame() ordering (#22674)
1 parent b23a0e8 commit 3f78c42

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pandas/core/indexes/multi.py

+7
Original file line numberDiff line numberDiff line change
@@ -1130,6 +1130,9 @@ def to_frame(self, index=True):
11301130
"""
11311131
Create a DataFrame with the levels of the MultiIndex as columns.
11321132
1133+
Column ordering is determined by the DataFrame constructor with data as
1134+
a dict.
1135+
11331136
.. versionadded:: 0.20.0
11341137
11351138
Parameters
@@ -1140,6 +1143,10 @@ def to_frame(self, index=True):
11401143
Returns
11411144
-------
11421145
DataFrame : a DataFrame containing the original MultiIndex data.
1146+
1147+
See also
1148+
--------
1149+
DataFrame
11431150
"""
11441151

11451152
from pandas import DataFrame

0 commit comments

Comments
 (0)