Skip to content

Commit 633c48f

Browse files
committed
replaced self with self.dtyp in base.py, removed extra line in 2.0.0.rst
1 parent 34af5a6 commit 633c48f

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

doc/source/whatsnew/v2.0.0.rst

-3
Original file line numberDiff line numberDiff line change
@@ -578,9 +578,6 @@ Deprecations
578578
- :meth:`Index.is_floating` has been deprecated. Use :func:`pandas.api.types.is_float_dtype` instead (:issue:`50042`)
579579
- :meth:`Index.holds_integer` has been deprecated. Use :func:`pandas.api.types.infer_dtype` instead (:issue:`50243`)
580580
- :meth:`Index.is_categorical` has been deprecated. Use :func:`pandas.api.types.is_categorical_dtype` instead (:issue:`50042`)
581-
582-
- :meth:`Index.is_categorical` has been deprecated. Use :func:`pandas.api.types.is_categorical_dtype` instead (:issue:`50042`)
583-
584581
.. ---------------------------------------------------------------------------
585582
.. _whatsnew_200.prior_deprecations:
586583

pandas/core/indexes/base.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5046,7 +5046,7 @@ def _can_hold_identifiers_and_holds_name(self, name) -> bool:
50465046
if (
50475047
self.is_object()
50485048
or is_string_dtype(self.dtype)
5049-
or is_categorical_dtype(self)
5049+
or is_categorical_dtype(self.dtype)
50505050
):
50515051
return name in self
50525052
return False

0 commit comments

Comments
 (0)