Skip to content

Doc: Fixing SA01 error for DataFrame: pop and columns #58359

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 2 commits into from
Apr 22, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 0 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.__dataframe__ SA01" \
-i "pandas.DataFrame.__iter__ SA01" \
-i "pandas.DataFrame.at_time PR01" \
-i "pandas.DataFrame.columns SA01" \
-i "pandas.DataFrame.droplevel SA01" \
-i "pandas.DataFrame.hist RT03" \
-i "pandas.DataFrame.infer_objects RT03" \
Expand All @@ -93,7 +92,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.median RT03,SA01" \
-i "pandas.DataFrame.min RT03" \
-i "pandas.DataFrame.plot PR02,SA01" \
-i "pandas.DataFrame.pop SA01" \
-i "pandas.DataFrame.prod RT03" \
-i "pandas.DataFrame.product RT03" \
-i "pandas.DataFrame.reorder_levels SA01" \
Expand Down
10 changes: 10 additions & 0 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -5535,6 +5535,11 @@ def pop(self, item: Hashable) -> Series:
Series
Series representing the item that is dropped.

See Also
--------
DataFrame.drop: Drop specified labels from rows or columns.
DataFrame.drop_duplicates: Return DataFrame with duplicate rows removed.

Examples
--------
>>> df = pd.DataFrame(
Expand Down Expand Up @@ -12893,6 +12898,11 @@ def isin_(x):
"""
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]})
Expand Down
Loading