Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 23 additions & 20 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -13488,26 +13488,29 @@ def isin_(x):
)
columns = properties.AxisProperty(
axis=0,
doc=dedent(
"""
The column labels of the DataFrame.

See Also
--------
DataFrame.index: The index (row labels) of the DataFrame.
DataFrame.axes: Return a list representing the axes of the DataFrame.

Examples
--------
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
>>> df
A B
0 1 3
1 2 4
>>> df.columns
Index(['A', 'B'], dtype='object')
"""
),
doc="""
The column labels of the DataFrame.

Returns
-------
pandas.Index
The column labels of the DataFrame.

See Also
--------
DataFrame.index: The index (row labels) of the DataFrame.
DataFrame.axes: Return a list representing the axes of the DataFrame.

Examples
--------
>>> df = pd.DataFrame({'A': [1, 2], 'B': [3, 4]})
>>> df
A B
0 1 3
1 2 4
>>> df.columns
Index(['A', 'B'], dtype='object')
""",
)

# ----------------------------------------------------------------------
Expand Down