API: Deprecate Index.is_(boolean|categorical|integer|floating|numeric|object|interval) · Issue #50042 · pandas-dev/pandas (original) (raw)

Feature Type

Problem Description

I propose deprecating the mentioned methods on Index.

I suggest dtype checking should be the same for indexes, series and arrays, so e.g. if users want to check the dtype of an index they should use the functions in pandas.api.types, e.g. for numeric dtype checks, do pd.api.types.is_numeric_dtype(idx).

Feature Description

Deprecate the mentioned methods and make users use the functions they'd use for series, i.e. the dtype checking functions in pandas.api.types.

Alternative Solutions

The alternative is not deprecating the methods...

Methods to deprecate: