Skip to content

DOC: Clean up for deprecations #52949

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 2 commits into from
Apr 27, 2023
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 @@ -2536,7 +2536,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 @@ -2589,7 +2589,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