We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b23a0e8 commit 3f78c42Copy full SHA for 3f78c42
pandas/core/indexes/multi.py
@@ -1130,6 +1130,9 @@ def to_frame(self, index=True):
1130
"""
1131
Create a DataFrame with the levels of the MultiIndex as columns.
1132
1133
+ Column ordering is determined by the DataFrame constructor with data as
1134
+ a dict.
1135
+
1136
.. versionadded:: 0.20.0
1137
1138
Parameters
@@ -1140,6 +1143,10 @@ def to_frame(self, index=True):
1140
1143
Returns
1141
1144
-------
1142
1145
DataFrame : a DataFrame containing the original MultiIndex data.
1146
1147
+ See also
1148
+ --------
1149
+ DataFrame
1150
1151
1152
from pandas import DataFrame
0 commit comments