Skip to content

Commit

Permalink
DOC: Remove deprecated methods from code_checks.sh (#58294)
Browse files Browse the repository at this point in the history
* DOC: Fix docstring error for pandas.DataFrame.dtypes

* DOC: Fix docstring error for pandas.DataFrame.get, pandas.Series.get

* DOC: Fix docstring error for pandas.Series.dtypes
  • Loading branch information
shriyakalakata authored Apr 18, 2024
1 parent 9bd7b39 commit a99fb7d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
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

0 comments on commit a99fb7d

Please sign in to comment.