@@ -296,9 +296,6 @@ class Index(IndexOpsMixin, PandasObject):
296
296
TimedeltaIndex : Index of timedelta64 data.
297
297
PeriodIndex : Index of Period data.
298
298
NumericIndex : Index of numpy int/uint/float data.
299
- Int64Index : Index of purely int64 labels (deprecated).
300
- UInt64Index : Index of purely uint64 labels (deprecated).
301
- Float64Index : Index of purely float64 labels (deprecated).
302
299
303
300
Notes
304
301
-----
@@ -498,7 +495,7 @@ def __new__(
498
495
499
496
klass = cls ._dtype_to_subclass (arr .dtype )
500
497
501
- # _ensure_array _may_ be unnecessary once Int64Index etc are gone
498
+ # _ensure_array _may_ be unnecessary once NumericIndex etc are gone
502
499
arr = klass ._ensure_array (arr , arr .dtype , copy = False )
503
500
return klass ._simple_new (arr , name )
504
501
@@ -1026,7 +1023,7 @@ def take(
1026
1023
taken = values .take (
1027
1024
indices , allow_fill = allow_fill , fill_value = self ._na_value
1028
1025
)
1029
- # _constructor so RangeIndex->Int64Index
1026
+ # _constructor so RangeIndex-> Index with an int64 dtype
1030
1027
return self ._constructor ._simple_new (taken , name = self .name )
1031
1028
1032
1029
@final
@@ -1097,7 +1094,7 @@ def repeat(self, repeats, axis=None):
1097
1094
nv .validate_repeat ((), {"axis" : axis })
1098
1095
res_values = self ._values .repeat (repeats )
1099
1096
1100
- # _constructor so RangeIndex->Int64Index
1097
+ # _constructor so RangeIndex-> Index with an int64 dtype
1101
1098
return self ._constructor ._simple_new (res_values , name = self .name )
1102
1099
1103
1100
# --------------------------------------------------------------------
@@ -6228,7 +6225,7 @@ def _maybe_cast_slice_bound(self, label, side: str_t):
6228
6225
"""
6229
6226
6230
6227
# We are a plain index here (sub-class override this method if they
6231
- # wish to have special treatment for floats/ints, e.g. Float64Index and
6228
+ # wish to have special treatment for floats/ints, e.g. NumericIndex and
6232
6229
# datetimelike Indexes
6233
6230
# Special case numeric EA Indexes, since they are not handled by NumericIndex
6234
6231
@@ -6442,7 +6439,7 @@ def delete(self: _IndexT, loc) -> _IndexT:
6442
6439
else :
6443
6440
res_values = values .delete (loc )
6444
6441
6445
- # _constructor so RangeIndex->Int64Index
6442
+ # _constructor so RangeIndex-> Index with an int64 dtype
6446
6443
return self ._constructor ._simple_new (res_values , name = self .name )
6447
6444
6448
6445
def insert (self , loc : int , item ) -> Index :
0 commit comments