File tree 1 file changed +1
-11
lines changed
1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -732,23 +732,13 @@ def _values(self) -> np.ndarray:
732
732
vals = cast ("CategoricalIndex" , vals )
733
733
vals = vals ._data ._internal_get_values ()
734
734
735
- is_dti = isinstance (vals , ABCDatetimeIndex )
736
-
737
- if is_dti :
738
- # TODO: this can be removed after Timestamp.freq is removed
739
- # The astype(object) below does not remove the freq from
740
- # the underlying Timestamps so we remove it here to match
741
- # the behavior of self._get_level_values
742
- vals = algos .take_nd (vals , codes , fill_value = index ._na_value )
743
-
744
735
if isinstance (vals .dtype , ExtensionDtype ) or isinstance (
745
736
vals , (ABCDatetimeIndex , ABCTimedeltaIndex )
746
737
):
747
738
vals = vals .astype (object )
748
739
749
740
vals = np .array (vals , copy = False )
750
- if not is_dti :
751
- vals = algos .take_nd (vals , codes , fill_value = index ._na_value )
741
+ vals = algos .take_nd (vals , codes , fill_value = index ._na_value )
752
742
values .append (vals )
753
743
754
744
arr = lib .fast_zip (values )
You can’t perform that action at this time.
0 commit comments