Skip to content

DOC: Remove deprecated methods from code_checks.sh #58294

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 4 commits into from
Apr 18, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 0 additions & 4 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.DataFrame.columns SA01" \
-i "pandas.DataFrame.copy SA01" \
-i "pandas.DataFrame.droplevel SA01" \
-i "pandas.DataFrame.dtypes SA01" \
-i "pandas.DataFrame.first_valid_index SA01" \
-i "pandas.DataFrame.get SA01" \
-i "pandas.DataFrame.hist RT03" \
-i "pandas.DataFrame.infer_objects RT03" \
-i "pandas.DataFrame.keys SA01" \
Expand Down Expand Up @@ -354,13 +352,11 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Series.dt.unit GL08" \
-i "pandas.Series.dt.year SA01" \
-i "pandas.Series.dtype SA01" \
-i "pandas.Series.dtypes SA01" \
-i "pandas.Series.empty GL08" \
-i "pandas.Series.eq PR07,SA01" \
-i "pandas.Series.first_valid_index SA01" \
-i "pandas.Series.floordiv PR07" \
-i "pandas.Series.ge PR07,SA01" \
-i "pandas.Series.get SA01" \
-i "pandas.Series.gt PR07,SA01" \
-i "pandas.Series.hasnans SA01" \
-i "pandas.Series.infer_objects RT03" \
Expand Down
9 changes: 9 additions & 0 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4203,6 +4203,11 @@ def get(self, key, default=None):
same type as items contained in object
Item for given key or ``default`` value, if key is not found.

See Also
--------
DataFrame.get : Get item from object for given key (ex: DataFrame column).
Series.get : Get item from object for given key (ex: DataFrame column).

Examples
--------
>>> df = pd.DataFrame(
Expand Down Expand Up @@ -6122,6 +6127,10 @@ def dtypes(self):
pandas.Series
The data type of each column.

See Also
--------
Series.dtypes : Return the dtype object of the underlying data.

Examples
--------
>>> df = pd.DataFrame(
Expand Down
4 changes: 4 additions & 0 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,6 +634,10 @@ def dtypes(self) -> DtypeObj:
"""
Return the dtype object of the underlying data.

See Also
--------
DataFrame.dtypes : Return the dtypes in the DataFrame.

Examples
--------
>>> s = pd.Series([1, 2, 3])
Expand Down