We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0b7693 commit 88b5a91Copy full SHA for 88b5a91
pandas/core/indexes/base.py
@@ -2536,7 +2536,7 @@ def is_categorical(self) -> bool:
2536
Check if the Index holds categorical data.
2537
2538
.. deprecated:: 2.0.0
2539
- Use :meth:`pandas.api.types.is_categorical_dtype` instead.
+ Use `isinstance(index.dtype, pd.CategoricalDtype)` instead.
2540
2541
Returns
2542
-------
@@ -2589,7 +2589,7 @@ def is_interval(self) -> bool:
2589
Check if the Index holds Interval objects.
2590
2591
2592
- Use `pandas.api.types.is_interval_dtype` instead.
+ Use `isinstance(index.dtype, pd.IntervalDtype)` instead.
2593
2594
2595
0 commit comments