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
Merged
Show file tree
Hide file tree
Changes from 5 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
6 changes: 0 additions & 6 deletions doc/source/reference/frame.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,11 @@ Constructor

Attributes and underlying data
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
**Axes**

.. autosummary::
:toctree: api/

DataFrame.index
DataFrame.columns

.. autosummary::
:toctree: api/

DataFrame.dtypes
DataFrame.info
DataFrame.select_dtypes
Expand Down
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
Loading