Skip to content

Missing source link #59549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Sep 6, 2024
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