diff --git a/pandas/core/generic.py b/pandas/core/generic.py index 41dd3e2941a06..29bfceeb6b83f 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -5075,9 +5075,8 @@ def pipe(self, func, *args, **kwargs): Notes ----- - `agg` is an alias for `aggregate`. Use the alias. - - Some NumPy functions resolve to their corresponding internal Cython function. - As pandas operations generally exclude NaNs, for example `.agg(np.nanmedian)`, - `.agg(np.median)`, and `.agg('median') will return the same result. + - Pandas operations generally exclude NaNs. For example, `agg(np.nanmedian)`, + `agg(np.median)`, and `agg('median') will return the same result. A passed user-defined-function will be passed a Series for evaluation. {examples}"""