Skip to content

Backport PR #52949 on branch 2.0.x (DOC: Clean up for deprecations) #52962

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandas/core/indexes/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2521,7 +2521,7 @@ def is_categorical(self) -> bool:
Check if the Index holds categorical data.

.. deprecated:: 2.0.0
Use :meth:`pandas.api.types.is_categorical_dtype` instead.
Use `isinstance(index.dtype, pd.CategoricalDtype)` instead.

Returns
-------
Expand Down Expand Up @@ -2574,7 +2574,7 @@ def is_interval(self) -> bool:
Check if the Index holds Interval objects.

.. deprecated:: 2.0.0
Use `pandas.api.types.is_interval_dtype` instead.
Use `isinstance(index.dtype, pd.IntervalDtype)` instead.

Returns
-------
Expand Down