Skip to content

Commit a1583e7

Browse files
committed
remove text in categorical.py
1 parent 4e4dbc4 commit a1583e7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

pandas/core/arrays/categorical.py

-2
Original file line numberDiff line numberDiff line change
@@ -1745,8 +1745,6 @@ def __contains__(self, key) -> bool:
17451745
"""
17461746
Returns True if `key` is in this Categorical.
17471747
"""
1748-
# in pandas 2.0, remove this method.
1749-
17501748
# if key is a NaN, check if any NaN is in self.
17511749
if is_valid_nat_for_dtype(key, self.categories.dtype):
17521750
return self.isna().any()

0 commit comments

Comments
 (0)