Skip to content

Commit

Permalink
docs(python): Fixed default name for value_counts methods based on …
Browse files Browse the repository at this point in the history
…normalize parameter (#17685)
  • Loading branch information
diegoglozano authored Jul 17, 2024
1 parent cffa970 commit 91f4927
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 @@ -9682,8 +9682,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 91f4927

Please sign in to comment.