Skip to content

Commit 88b5a91

Browse files
authored
DOC: Clean up for deprecations (#52949)
1 parent a0b7693 commit 88b5a91

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/indexes/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -2536,7 +2536,7 @@ def is_categorical(self) -> bool:
25362536
Check if the Index holds categorical data.
25372537
25382538
.. deprecated:: 2.0.0
2539-
Use :meth:`pandas.api.types.is_categorical_dtype` instead.
2539+
Use `isinstance(index.dtype, pd.CategoricalDtype)` instead.
25402540
25412541
Returns
25422542
-------
@@ -2589,7 +2589,7 @@ def is_interval(self) -> bool:
25892589
Check if the Index holds Interval objects.
25902590
25912591
.. deprecated:: 2.0.0
2592-
Use `pandas.api.types.is_interval_dtype` instead.
2592+
Use `isinstance(index.dtype, pd.IntervalDtype)` instead.
25932593
25942594
Returns
25952595
-------

0 commit comments

Comments
 (0)