@@ -296,9 +296,6 @@ class Index(IndexOpsMixin, PandasObject):
296296 TimedeltaIndex : Index of timedelta64 data.
297297 PeriodIndex : Index of Period data.
298298 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).
302299
303300 Notes
304301 -----
@@ -498,7 +495,7 @@ def __new__(
498495
499496 klass = cls ._dtype_to_subclass (arr .dtype )
500497
501- # _ensure_array _may_ be unnecessary once Int64Index etc are gone
498+ # _ensure_array _may_ be unnecessary once NumericIndex etc are gone
502499 arr = klass ._ensure_array (arr , arr .dtype , copy = False )
503500 return klass ._simple_new (arr , name )
504501
@@ -1026,7 +1023,7 @@ def take(
10261023 taken = values .take (
10271024 indices , allow_fill = allow_fill , fill_value = self ._na_value
10281025 )
1029- # _constructor so RangeIndex->Int64Index
1026+ # _constructor so RangeIndex-> Index with an int64 dtype
10301027 return self ._constructor ._simple_new (taken , name = self .name )
10311028
10321029 @final
@@ -1097,7 +1094,7 @@ def repeat(self, repeats, axis=None):
10971094 nv .validate_repeat ((), {"axis" : axis })
10981095 res_values = self ._values .repeat (repeats )
10991096
1100- # _constructor so RangeIndex->Int64Index
1097+ # _constructor so RangeIndex-> Index with an int64 dtype
11011098 return self ._constructor ._simple_new (res_values , name = self .name )
11021099
11031100 # --------------------------------------------------------------------
@@ -6228,7 +6225,7 @@ def _maybe_cast_slice_bound(self, label, side: str_t):
62286225 """
62296226
62306227 # 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
62326229 # datetimelike Indexes
62336230 # Special case numeric EA Indexes, since they are not handled by NumericIndex
62346231
@@ -6442,7 +6439,7 @@ def delete(self: _IndexT, loc) -> _IndexT:
64426439 else :
64436440 res_values = values .delete (loc )
64446441
6445- # _constructor so RangeIndex->Int64Index
6442+ # _constructor so RangeIndex-> Index with an int64 dtype
64466443 return self ._constructor ._simple_new (res_values , name = self .name )
64476444
64486445 def insert (self , loc : int , item ) -> Index :
0 commit comments