1717 PeriodIndex , Timedelta , IntervalIndex , Interval ,
1818 CategoricalIndex , Timestamp , DataFrame , Panel )
1919from pandas .core .arrays import (
20+ PandasArray ,
2021 DatetimeArrayMixin as DatetimeArray ,
2122 TimedeltaArrayMixin as TimedeltaArray ,
2223)
2324from pandas .compat import StringIO , PYPY , long
2425from pandas .compat .numpy import np_array_datetime64_compat
25- from pandas .core .arrays import PandasArray
2626from pandas .core .accessor import PandasDelegate
2727from pandas .core .base import PandasObject , NoNewAttributesMixin
2828from pandas .core .indexes .datetimelike import DatetimeIndexOpsMixin
@@ -388,11 +388,9 @@ def test_value_counts_unique_nunique(self):
388388 for r in result :
389389 assert isinstance (r , Timestamp )
390390
391- # TODO(#24024) once orig._values returns DTA, remove
392- # the `._eadata` below
393391 tm .assert_numpy_array_equal (
394392 result .astype (object ),
395- orig ._values ._eadata . astype (object ))
393+ orig ._values .astype (object ))
396394 else :
397395 tm .assert_numpy_array_equal (result , orig .values )
398396
@@ -418,9 +416,7 @@ def test_value_counts_unique_nunique_null(self):
418416 else :
419417 o = o .copy ()
420418 o [0 :2 ] = iNaT
421- # TODO(#24024) once Series._values returns DTA, remove
422- # the `._eadata` here
423- values = o ._values ._eadata
419+ values = o ._values
424420
425421 elif needs_i8_conversion (o ):
426422 values [0 :2 ] = iNaT
@@ -1158,7 +1154,7 @@ def test_iter_box(self):
11581154 (np .array (['a' , 'b' ]), np .ndarray , 'object' ),
11591155 (pd .Categorical (['a' , 'b' ]), pd .Categorical , 'category' ),
11601156 (pd .DatetimeIndex (['2017' , '2018' ]), np .ndarray , 'datetime64[ns]' ),
1161- (pd .DatetimeIndex (['2017' , '2018' ], tz = "US/Central" ), pd . DatetimeIndex ,
1157+ (pd .DatetimeIndex (['2017' , '2018' ], tz = "US/Central" ), DatetimeArray ,
11621158 'datetime64[ns, US/Central]' ),
11631159 (pd .TimedeltaIndex ([10 ** 10 ]), np .ndarray , 'm8[ns]' ),
11641160 (pd .PeriodIndex ([2018 , 2019 ], freq = 'A' ), pd .core .arrays .PeriodArray ,
0 commit comments