@@ -207,6 +207,7 @@ def is_bool(self) -> bool:
207
207
def external_values (self ):
208
208
return external_values (self .values )
209
209
210
+ @final
210
211
def internal_values (self ):
211
212
"""
212
213
The array that Series._values returns (internal values).
@@ -593,8 +594,6 @@ def astype(self, dtype, copy: bool = False, errors: str = "raise"):
593
594
Block
594
595
"""
595
596
values = self .values
596
- if values .dtype .kind in ["m" , "M" ]:
597
- values = self .array_values
598
597
599
598
new_values = astype_array_safe (values , dtype , copy = copy , errors = errors )
600
599
@@ -1763,10 +1762,6 @@ def is_view(self) -> bool:
1763
1762
# check the ndarray values of the DatetimeIndex values
1764
1763
return self .values ._ndarray .base is not None
1765
1764
1766
- def internal_values (self ):
1767
- # Override to return DatetimeArray and TimedeltaArray
1768
- return self .values
1769
-
1770
1765
def get_values (self , dtype : Optional [DtypeObj ] = None ) -> np .ndarray :
1771
1766
"""
1772
1767
return object dtype as boxed values, such as Timestamps/Timedelta
@@ -1878,7 +1873,6 @@ class DatetimeTZBlock(ExtensionBlock, DatetimeLikeBlockMixin):
1878
1873
is_extension = True
1879
1874
is_numeric = False
1880
1875
1881
- internal_values = Block .internal_values
1882
1876
diff = DatetimeBlock .diff
1883
1877
where = DatetimeBlock .where
1884
1878
putmask = DatetimeLikeBlockMixin .putmask
0 commit comments