Skip to content

Commit fb51ca9

Browse files
ryananyanguTomAugspurger
authored andcommitted
DOC: improved docstring for pandas.Index.to_frame (#20139)
1 parent 34649f2 commit fb51ca9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/core/indexes/base.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,6 +1190,11 @@ def to_frame(self, index=True):
11901190
DataFrame
11911191
DataFrame containing the original Index data.
11921192
1193+
See Also
1194+
--------
1195+
Index.to_series : Convert an Index to a Series.
1196+
Series.to_frame : Convert Series to DataFrame.
1197+
11931198
Examples
11941199
--------
11951200
>>> idx = pd.Index(['Ant', 'Bear', 'Cow'], name='animal')

0 commit comments

Comments
 (0)