Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,8 @@ def apply(self, func, *args, **kwargs) -> Series:

Notes
-----
See :ref:`groupby.apply` in the User Guide for more details and examples.

The resulting dtype will reflect the return value of the passed ``func``,
see the examples below.

Expand Down Expand Up @@ -382,6 +384,9 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs)

Notes
-----
See :ref:`groupby.aggregate` in the User Guide for more details
and examples.

When using ``engine='numba'``, there will be no "fall back" behavior internally.
The group data and group index will be passed as numpy arrays to the JITed
user defined function, and no alternative execution attempts will be tried.
Expand Down Expand Up @@ -711,6 +716,8 @@ def transform(self, func, *args, engine=None, engine_kwargs=None, **kwargs):

Notes
-----
See :ref:`groupby.transform` in the User Guide for more details and examples.

Each group is endowed the attribute 'name' in case you need to know
which group you are working on.

Expand Down Expand Up @@ -2180,6 +2187,9 @@ def aggregate(self, func=None, *args, engine=None, engine_kwargs=None, **kwargs)

Notes
-----
See :ref:`groupby.aggregate` in the User Guide for more details
and examples.

When using ``engine='numba'``, there will be no "fall back" behavior internally.
The group data and group index will be passed as numpy arrays to the JITed
user defined function, and no alternative execution attempts will be tried.
Expand Down Expand Up @@ -2706,6 +2716,8 @@ def transform(self, func, *args, engine=None, engine_kwargs=None, **kwargs):

Notes
-----
See :ref:`groupby.transform` in the User Guide for more details and examples.

Each group is endowed the attribute 'name' in case you need to know
which group you are working on.

Expand Down
2 changes: 2 additions & 0 deletions pandas/core/groupby/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -1541,6 +1541,8 @@ def apply(self, func, *args, include_groups: bool = False, **kwargs) -> NDFrameT

Notes
-----
See :ref:`groupby.apply` in the User Guide for more details and examples.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you also add this line to SeriesGroupBy.apply in generic.py.


The resulting dtype will reflect the return value of the passed ``func``,
see the examples below.

Expand Down
Loading