Skip to content

Commit b4493b6

Browse files
authored
DOC: Fix docstring error for pandas.DataFrame.axes (#58223)
* DOC: Fix docstring error for pandas.DataFrame.axes * DOC: Fix docstring error for pandas.DataFrame.axes
1 parent bbefde5 commit b4493b6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ci/code_checks.sh

-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
8383
-i "pandas.DataFrame.__iter__ SA01" \
8484
-i "pandas.DataFrame.assign SA01" \
8585
-i "pandas.DataFrame.at_time PR01" \
86-
-i "pandas.DataFrame.axes SA01" \
8786
-i "pandas.DataFrame.bfill SA01" \
8887
-i "pandas.DataFrame.columns SA01" \
8988
-i "pandas.DataFrame.copy SA01" \

pandas/core/frame.py

+5
Original file line numberDiff line numberDiff line change
@@ -995,6 +995,11 @@ def axes(self) -> list[Index]:
995995
It has the row axis labels and column axis labels as the only members.
996996
They are returned in that order.
997997
998+
See Also
999+
--------
1000+
DataFrame.index: The index (row labels) of the DataFrame.
1001+
DataFrame.columns: The column labels of the DataFrame.
1002+
9981003
Examples
9991004
--------
10001005
>>> df = pd.DataFrame({"col1": [1, 2], "col2": [3, 4]})

0 commit comments

Comments
 (0)