We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e4dbc4 commit a1583e7Copy full SHA for a1583e7
pandas/core/arrays/categorical.py
@@ -1745,8 +1745,6 @@ def __contains__(self, key) -> bool:
1745
"""
1746
Returns True if `key` is in this Categorical.
1747
1748
- # in pandas 2.0, remove this method.
1749
-
1750
# if key is a NaN, check if any NaN is in self.
1751
if is_valid_nat_for_dtype(key, self.categories.dtype):
1752
return self.isna().any()
0 commit comments