Skip to content

TST: Add tests for DataFrame/Series.value_counts with missing categories #54836

Closed
@rhshadrach

Description

@rhshadrach

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.

Metadata

Metadata

Assignees

Labels

AlgosNon-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diffCategoricalCategorical Data TypeNeeds TestsUnit test(s) needed to prevent regressionsgood first issue

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions