Skip to content

Commit

Permalink
[docs] Fixed default name based on normalize parameter in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoglozano committed Jul 17, 2024
1 parent 08b6f1d commit f22a94d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions py-polars/polars/expr/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions py-polars/polars/series/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f22a94d

Please sign in to comment.