Skip to content

Commit 83cf792

Browse files
committed
replaced self with self.dtyp in base.py, removed extra line in 2.0.0.rst
1 parent 132cfe6 commit 83cf792

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

doc/source/whatsnew/v2.0.0.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,6 @@ Deprecations
509509
~~~~~~~~~~~~
510510
- Deprecated argument ``infer_datetime_format`` in :func:`to_datetime` and :func:`read_csv`, as a strict version of it is now the default (:issue:`48621`)
511511
- :meth:`Index.is_categorical` has been deprecated. Use :func:`pandas.api.types.is_categorical_dtype` instead (:issue:`50042`)
512-
513-
- :meth:`Index.is_categorical` has been deprecated. Use :func:`pandas.api.types.is_categorical_dtype` instead (:issue:`50042`)
514-
515512
.. ---------------------------------------------------------------------------
516513
517514
.. _whatsnew_200.prior_deprecations:

pandas/core/indexes/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5008,7 +5008,7 @@ def _can_hold_identifiers_and_holds_name(self, name) -> bool:
50085008
if (
50095009
self.is_object()
50105010
or is_string_dtype(self.dtype)
5011-
or is_categorical_dtype(self)
5011+
or is_categorical_dtype(self.dtype)
50125012
):
50135013
return name in self
50145014
return False

0 commit comments

Comments
 (0)