diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 52bc4022c9a5..293b5b387380 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -7804,7 +7804,8 @@ def pivot( If None, all remaining columns not specified on `on` and `values` will be used. At least one of `index` and `values` must be specified. values - The existing column(s) of values which will be moved under the new columns from index. + The existing column(s) of values which will be moved under the new columns from index. If an + aggregation is specified, these are the values on which the aggregation will be computed. If None, all remaining columns not specified on `on` and `index` will be used. At least one of `index` and `values` must be specified. aggregate_function