Skip to content

Commit 352289b

Browse files
authored
Missing source link (#59549)
* merged DataFrame.index and DataFrame.columns with other Axes section. * small clean for DataFrame.columns * reverted frame.rst file
1 parent 5a07ed5 commit 352289b

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

pandas/core/frame.py

+23-20
Original file line numberDiff line numberDiff line change
@@ -13629,26 +13629,29 @@ def isin_(x):
1362913629
)
1363013630
columns = properties.AxisProperty(
1363113631
axis=0,
13632-
doc=dedent(
13633-
"""
13634-
The column labels of the DataFrame.
13635-
13636-
See Also
13637-
--------
13638-
DataFrame.index: The index (row labels) of the DataFrame.
13639-
DataFrame.axes: Return a list representing the axes of the DataFrame.
13640-
13641-
Examples
13642-
--------
13643-
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
13644-
>>> df
13645-
A B
13646-
0 1 3
13647-
1 2 4
13648-
>>> df.columns
13649-
Index(['A', 'B'], dtype='object')
13650-
"""
13651-
),
13632+
doc="""
13633+
The column labels of the DataFrame.
13634+
13635+
Returns
13636+
-------
13637+
pandas.Index
13638+
The column labels of the DataFrame.
13639+
13640+
See Also
13641+
--------
13642+
DataFrame.index: The index (row labels) of the DataFrame.
13643+
DataFrame.axes: Return a list representing the axes of the DataFrame.
13644+
13645+
Examples
13646+
--------
13647+
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
13648+
>>> df
13649+
A B
13650+
0 1 3
13651+
1 2 4
13652+
>>> df.columns
13653+
Index(['A', 'B'], dtype='object')
13654+
""",
1365213655
)
1365313656

1365413657
# ----------------------------------------------------------------------

0 commit comments

Comments
 (0)