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 79abb44 commit b56c6ceCopy full SHA for b56c6ce
pandas/core/indexes/base.py
@@ -2521,7 +2521,7 @@ def is_categorical(self) -> bool:
2521
Check if the Index holds categorical data.
2522
2523
.. deprecated:: 2.0.0
2524
- Use :meth:`pandas.api.types.is_categorical_dtype` instead.
+ Use `isinstance(index.dtype, pd.CategoricalDtype)` instead.
2525
2526
Returns
2527
-------
@@ -2574,7 +2574,7 @@ def is_interval(self) -> bool:
2574
Check if the Index holds Interval objects.
2575
2576
2577
- Use `pandas.api.types.is_interval_dtype` instead.
+ Use `isinstance(index.dtype, pd.IntervalDtype)` instead.
2578
2579
2580
0 commit comments