pandas.DataFrame.pipe
pandas 3.1.1 · DataFrame · method
Pass the current object to a callable while staying in a method chain.
Call syntax
DataFrame.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 |
function Supply a supported operation name or a callable, depending on this API. |
*args |
Optional Additional positional arguments |
|
**kwargs |
Optional Additional keyword arguments |
Returns
The return type of func.