Skip to content

Commit fff4b7e

Browse files
Update pandas/core/generic.py
Co-authored-by: Marco Gorelli <[email protected]>
1 parent beee950 commit fff4b7e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandas/core/generic.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5075,8 +5075,9 @@ def pipe(self, func, *args, **kwargs):
50755075
Notes
50765076
-----
50775077
- `agg` is an alias for `aggregate`. Use the alias.
5078-
- Some NumPy functions such as ``np.mean``, ``np.nanmean``, ``np.median`` etc.
5079-
resolve to their corresponding internal cython function.
5078+
- Some NumPy functions resolve to their corresponding internal Cython function. As pandas operations
5079+
generally exclude NaNs, this means that `.agg(np.nanmedian)`, `.agg(np.median)`, and `.agg('median')
5080+
will return the same result.
50805081
50815082
A passed user-defined-function will be passed a Series for evaluation.
50825083
{examples}"""

0 commit comments

Comments
 (0)