MCPcopy Index your code
hub / github.com/pydata/xarray / _to_numeric

Method _to_numeric

xarray/core/variable.py:2479–2486  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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,

Callers 4

differentiateMethod · 0.80
_floatize_xFunction · 0.80

Calls 1

typeFunction · 0.85

Tested by 2