DOC: DataFrame.count_values supports single label #50829
Labels
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Docs
good first issue
Testing
pandas testing functions or related to the test suite
Milestone
Pandas version checks
main
hereLocation of the documentation
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.value_counts.html
Documentation problem
documentation claims the
subset
must belist-like, optional
the implementation uses
DataFrame.groupby
, which acceptsmapping, function, label, or list of labels
the result is
value_counts
can accept a single labelSuggested fix for documentation
value_counts
documentation to reflect its capabilitiesvalue_counts
implementation to reflect the documentationuse of groupby goes to value_count's inception, and groupby's api has been consistent since 1.0
+1 option (1)
The text was updated successfully, but these errors were encountered: