Skip to content

DOC: Fix SA04 errors in docstrings xref #28792 #32180

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
6 changes: 3 additions & 3 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,8 +313,8 @@ def unique(values):

See Also
--------
Index.unique
Series.unique
Index.unique : Return unique values from an Index.
Series.unique : Return unique values of Series object.

Examples
--------
Expand Down Expand Up @@ -1515,7 +1515,7 @@ def take(arr, indices, axis: int = 0, allow_fill: bool = False, fill_value=None)

See Also
--------
numpy.take
numpy.take : Take elements from an array along an axis.

Examples
--------
Expand Down
17 changes: 9 additions & 8 deletions pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ class DataFrame(NDFrame):
--------
DataFrame.from_records : Constructor from tuples, also record arrays.
DataFrame.from_dict : From dicts of Series, arrays, or dicts.
read_csv
read_table
read_clipboard
read_csv : Read a comma-separated values (csv) file into DataFrame.
read_table : Read general delimited file into DataFrame.
read_clipboard : Read text from clipboard into DataFrame.

Examples
--------
Expand Down Expand Up @@ -7393,8 +7393,9 @@ def corr(self, method="pearson", min_periods=1) -> "DataFrame":

See Also
--------
DataFrame.corrwith
Series.corr
DataFrame.corrwith : Compute pairwise correlation with another
DataFrame or Series.
Series.corr : Compute the correlation between two Series.

Examples
--------
Expand Down Expand Up @@ -7596,7 +7597,7 @@ def corrwith(self, other, axis=0, drop=False, method="pearson") -> Series:

See Also
--------
DataFrame.corr
DataFrame.corr : Compute pairwise correlation of columns.
"""
axis = self._get_axis_number(axis)
this = self._get_numeric_data()
Expand Down Expand Up @@ -8001,7 +8002,7 @@ def idxmin(self, axis=0, skipna=True) -> Series:

See Also
--------
Series.idxmin
Series.idxmin : Return index of the minimum element.

Notes
-----
Expand Down Expand Up @@ -8039,7 +8040,7 @@ def idxmax(self, axis=0, skipna=True) -> Series:

See Also
--------
Series.idxmax
Series.idxmax : Return index of the maximum element.

Notes
-----
Expand Down
11 changes: 7 additions & 4 deletions pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ def ravel(self, order="C"):

See Also
--------
numpy.ndarray.ravel
numpy.ndarray.ravel : Return a flattened array.
"""
return self._values.ravel(order=order)

Expand Down Expand Up @@ -2076,6 +2076,9 @@ def round(self, decimals=0, *args, **kwargs) -> "Series":
decimals : int, default 0
Number of decimal places to round to. If decimals is negative,
it specifies the number of positions to the left of the decimal point.
*args, **kwargs
Additional arguments and keywords have no effect but might be
accepted for compatibility with NumPy.

Returns
-------
Expand Down Expand Up @@ -2130,8 +2133,8 @@ def quantile(self, q=0.5, interpolation="linear"):

See Also
--------
core.window.Rolling.quantile
numpy.percentile
core.window.Rolling.quantile : Calculate the rolling quantile.
numpy.percentile : Returns the q-th percentile(s) of the array elements.

Examples
--------
Expand Down Expand Up @@ -3149,7 +3152,7 @@ def argsort(self, axis=0, kind="quicksort", order=None) -> "Series":

See Also
--------
numpy.ndarray.argsort
numpy.ndarray.argsort : Returns the indices that would sort this array.
"""
values = self._values
mask = isna(values)
Expand Down