diff --git a/py-polars/polars/expr/expr.py b/py-polars/polars/expr/expr.py index 9a7a6c1a68e2..3d6215a63fe5 100644 --- a/py-polars/polars/expr/expr.py +++ b/py-polars/polars/expr/expr.py @@ -9671,8 +9671,8 @@ def value_counts( as the computation is already parallelized per group. name Give the resulting count column a specific name; - if `normalize` is True defaults to "count", - otherwise defaults to "proportion". + if `normalize` is True defaults to "proportion", + otherwise defaults to "count". normalize If true gives relative frequencies of the unique values diff --git a/py-polars/polars/series/series.py b/py-polars/polars/series/series.py index f298b793c9ad..0ac265a64ef3 100644 --- a/py-polars/polars/series/series.py +++ b/py-polars/polars/series/series.py @@ -2429,8 +2429,8 @@ def value_counts( as the computation is already parallelized per group. name Give the resulting count column a specific name; - if `normalize` is True defaults to "count", - otherwise defaults to "proportion". + if `normalize` is True defaults to "proportion", + otherwise defaults to "count". normalize If true gives relative frequencies of the unique values