Skip to content

Commit 0189674

Browse files
topper-123Terji Petersen
and
Terji Petersen
authored
CLN: Remove Index._is_numeric_dtype (#50236)
Co-authored-by: Terji Petersen <[email protected]>
1 parent e0b93cc commit 0189674

File tree

3 files changed

+0
-3
lines changed

3 files changed

+0
-3
lines changed

pandas/core/indexes/base.py

-1
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,6 @@ def _outer_indexer(
387387
_no_setting_name: bool = False
388388
_comparables: list[str] = ["name"]
389389
_attributes: list[str] = ["name"]
390-
_is_numeric_dtype: bool = False
391390
_can_hold_strings: bool = True
392391

393392
# Whether this index is a NumericIndex, but not a Int64Index, Float64Index,

pandas/core/indexes/datetimelike.py

-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class DatetimeIndexOpsMixin(NDArrayBackedExtensionIndex):
8888
Common ops mixin to support a unified interface datetimelike Index.
8989
"""
9090

91-
_is_numeric_dtype = False
9291
_can_hold_strings = False
9392
_data: DatetimeArray | TimedeltaArray | PeriodArray
9493
freq: BaseOffset | None

pandas/core/indexes/numeric.py

-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ class NumericIndex(Index):
8686
is_numeric_dtype,
8787
"numeric type",
8888
)
89-
_is_numeric_dtype = True
9089
_can_hold_strings = False
9190
_is_backward_compat_public_numeric_index: bool = True
9291

0 commit comments

Comments
 (0)