A (private) method to convert datetime array to numeric dtype See duck_array_ops.datetime_to_numeric
(self, offset=None, datetime_unit=None, dtype=float)
| 2477 | return self |
| 2478 | |
| 2479 | def _to_numeric(self, offset=None, datetime_unit=None, dtype=float): |
| 2480 | """A (private) method to convert datetime array to numeric dtype |
| 2481 | See duck_array_ops.datetime_to_numeric |
| 2482 | """ |
| 2483 | numeric_array = duck_array_ops.datetime_to_numeric( |
| 2484 | self.data, offset, datetime_unit, dtype |
| 2485 | ) |
| 2486 | return type(self)(self.dims, numeric_array, self._attrs) |
| 2487 | |
| 2488 | def _unravel_argminmax( |
| 2489 | self, |