From 3c0343246ae5cbadd8d5eb5ad8618db79489f793 Mon Sep 17 00:00:00 2001 From: Valery Lozko Date: Thu, 11 Apr 2024 13:55:48 -0400 Subject: [PATCH 1/2] DOC: Fix docstring error for pandas.DataFrame.axes --- ci/code_checks.sh | 1 - pandas/core/frame.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ci/code_checks.sh b/ci/code_checks.sh index 9c39fac13b230..b76ef69efa9f2 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -83,7 +83,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.__iter__ SA01" \ -i "pandas.DataFrame.assign SA01" \ -i "pandas.DataFrame.at_time PR01" \ - -i "pandas.DataFrame.axes SA01" \ -i "pandas.DataFrame.bfill SA01" \ -i "pandas.DataFrame.columns SA01" \ -i "pandas.DataFrame.copy SA01" \ diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 6db1811a98dd3..74ee381472992 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -994,6 +994,11 @@ def axes(self) -> list[Index]: It has the row axis labels and column axis labels as the only members. They are returned in that order. + + See Also + -------- + DataFrame.index: The index (row labels) of the DataFrame. + DataFrame.columns: The column labels of the DataFrame. Examples -------- From 8e7e77d77e38462a27572b6457e029258ce3cb80 Mon Sep 17 00:00:00 2001 From: Valery Lozko Date: Thu, 11 Apr 2024 14:19:09 -0400 Subject: [PATCH 2/2] DOC: Fix docstring error for pandas.DataFrame.axes --- pandas/core/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 74ee381472992..0b386efb5a867 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -994,7 +994,7 @@ def axes(self) -> list[Index]: It has the row axis labels and column axis labels as the only members. They are returned in that order. - + See Also -------- DataFrame.index: The index (row labels) of the DataFrame.