We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be69a4 commit 12d3232Copy full SHA for 12d3232
pandas/core/indexes/base.py
@@ -2545,7 +2545,7 @@ def is_categorical(self) -> bool:
2545
Check if the Index holds categorical data.
2546
2547
.. deprecated:: 2.0.0
2548
- Use :meth:`pandas.api.types.is_categorical_dtype` instead.
+ Use `isinstance(index.dtype, pd.CategoricalDtype)` instead.
2549
2550
Returns
2551
-------
@@ -2598,7 +2598,7 @@ def is_interval(self) -> bool:
2598
Check if the Index holds Interval objects.
2599
2600
2601
- Use `pandas.api.types.is_interval_dtype` instead.
+ Use `isinstance(index.dtype, pd.IntervalDtype)` instead.
2602
2603
2604
0 commit comments