-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Open
Labels
enhancementNew feature or an improvement of an existing featureNew feature or an improvement of an existing featureneeds decisionAwaiting decision by a maintainerAwaiting decision by a maintainer
Description
Description
Pivot() has the parameter 'aggregate_function'
https://docs.pola.rs/api/python/stable/reference/dataframe/api/polars.DataFrame.pivot.html
This notation seems to be only in use for pivot:
https://docs.pola.rs/api/python/stable/search.html?q=aggregate_function
Most of the API however uses 'agg'
This is easier to use, clear to understand, and more consistent across the entire API
https://docs.pola.rs/api/python/stable/search.html?q=agg
Current
df.pivot("col", index="ix", aggregate_function="sum")New
df.pivot("col", index="ix", agg="sum")lmocsi
Metadata
Metadata
Assignees
Labels
enhancementNew feature or an improvement of an existing featureNew feature or an improvement of an existing featureneeds decisionAwaiting decision by a maintainerAwaiting decision by a maintainer