diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d37f4bcf44ee4..c4e43b88a0097 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -623,13 +623,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then pandas.DataFrame.mean\ pandas.DataFrame.median\ pandas.DataFrame.min\ - pandas.DataFrame.nsmallest\ - pandas.DataFrame.nunique\ - pandas.DataFrame.pipe\ - pandas.DataFrame.plot.box\ - pandas.DataFrame.plot.density\ - pandas.DataFrame.plot.kde\ - pandas.DataFrame.plot.scatter\ pandas.DataFrame.pop\ pandas.DataFrame.prod\ pandas.DataFrame.product\ diff --git a/pandas/core/frame.py b/pandas/core/frame.py index 25501ff245e46..88fa1148c0dfc 100644 --- a/pandas/core/frame.py +++ b/pandas/core/frame.py @@ -7432,6 +7432,7 @@ def nsmallest( Returns ------- DataFrame + DataFrame with the first `n` rows ordered by `columns` in ascending order. See Also -------- @@ -11898,6 +11899,7 @@ def nunique(self, axis: Axis = 0, dropna: bool = True) -> Series: Returns ------- Series + Series with counts of unique values per row or column, depending on `axis`. See Also -------- diff --git a/pandas/core/generic.py b/pandas/core/generic.py index e65764b56428b..5119e799e6de1 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5846,7 +5846,8 @@ def pipe( Returns ------- - the return type of ``func``. + The return type of ``func``. + The result of applying ``func`` to the Series or DataFrame. See Also -------- @@ -5862,7 +5863,7 @@ def pipe( Examples -------- - Constructing a income DataFrame from a dictionary. + Constructing an income DataFrame from a dictionary. >>> data = [[8000, 1000], [9500, np.nan], [5000, 2000]] >>> df = pd.DataFrame(data, columns=["Salary", "Others"]) diff --git a/pandas/plotting/_core.py b/pandas/plotting/_core.py index edd619c264c7a..c9d1e5a376bfd 100644 --- a/pandas/plotting/_core.py +++ b/pandas/plotting/_core.py @@ -1335,6 +1335,7 @@ def box(self, by: IndexLabel | None = None, **kwargs) -> PlotAccessor: Returns ------- :class:`matplotlib.axes.Axes` or numpy.ndarray of them + The matplotlib axes containing the box plot. See Also -------- @@ -1466,6 +1467,7 @@ def kde( Returns ------- matplotlib.axes.Axes or numpy.ndarray of them + The matplotlib axes containing the KDE plot. See Also -------- @@ -1745,6 +1747,7 @@ def scatter( Returns ------- :class:`matplotlib.axes.Axes` or numpy.ndarray of them + The matplotlib axes containing the scatter plot. See Also --------