-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
Open
Labels
CategoricalCategorical Data TypeCategorical Data TypeInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationPDEP missing valuesIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprintIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprint
Description
There are a bunch of places in CategoricalIndex where we check something like:
codes = self.categories.get_indexer(target)
if (codes == -1).any():
do_something()
This leads to ambiguity, as a -1 code can indicate an NA value that is present, or a non-NA value that is not among self.categories. Having to sort out which we're looking at is a hassle which we should try to avoid.
Metadata
Metadata
Assignees
Labels
CategoricalCategorical Data TypeCategorical Data TypeInternalsRelated to non-user accessible pandas implementationRelated to non-user accessible pandas implementationPDEP missing valuesIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprintIssues that would be addressed by the Ice Cream Agreement from the Aug 2023 sprint