Skip to content

API: Deprecate Index.is_(boolean|categorical|integer|floating|numeric|object|interval) #50042

Closed
@topper-123

Description

@topper-123

Feature Type

  • Adding new functionality to pandas

  • Changing existing functionality in pandas

  • Removing existing functionality in pandas

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:

Metadata

Metadata

Labels

API - ConsistencyInternal Consistency of API/BehaviorDeprecateFunctionality to remove in pandasIndexRelated to the Index class or subclassesgood first issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions