Skip to content

Commit 2e30a56

Browse files
committed
Updates
* _values -> _data * remove unused imports
1 parent f62544a commit 2e30a56

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pandas/_libs/reduction.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ cnp.import_array()
1717

1818
cimport util
1919
from lib import maybe_convert_objects
20-
from tslibs.conversion import NS_DTYPE, TD_DTYPE
2120

2221

2322
cdef _get_result_array(object obj, Py_ssize_t size, Py_ssize_t cnt):

pandas/core/indexes/timedeltas.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ def astype(self, dtype, copy=True):
315315
# Have to repeat the check for 'timedelta64' (not ns) dtype
316316
# so that we can return a numeric index, since pandas will return
317317
# a TimedeltaIndex when dtype='timedelta'
318-
result = self._values.astype(dtype, copy=copy)
318+
result = self._data.astype(dtype, copy=copy)
319319
if self.hasnans:
320320
return Index(result, name=self.name)
321321
return Index(result.astype('i8'), name=self.name)

0 commit comments

Comments
 (0)