pandas.api.typing.DataFrameGroupBy.pipe
pandas 3.1.1 · GroupBy · method
Pass the current object to a callable while staying in a method chain.
Call syntax
pd.api.typing.DataFrameGroupBy.pipe(func, *args, **kwargs)Run the example
Edit the example and select Run Python to see the result.
Parameters
| Parameter | Requirement | Accepted values and behavior |
|---|---|---|
func |
Required Positional or keyword |
callable or tuple of (callable, str) Supply a supported operation name or a callable, depending on this API. |
*args |
Optional Additional positional arguments |
|
**kwargs |
Optional Additional keyword arguments |
Returns
GroupBy