TST: Add tests for DataFrame/Series.value_counts with missing categories #54836
Labels
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Categorical
Categorical Data Type
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
Milestone
From #54789, it seems to me we didn't have any test coverage for Series/DataFrame.value_counts with categoricals. We still don't have any test coverage for these methods where the categorical has missing categories, e.g.
pd.Categorical([1, 2, 4], categories=[1, 2, 3, 4])
. Tests for these cases should be added.The text was updated successfully, but these errors were encountered: