Clarify impact of datetime coordinate unit on polyfit
, polyval
, integrate
, differentiate
#9937
Labels
polyfit
, polyval
, integrate
, differentiate
#9937
What is your issue?
We will soon support non-nanosecond time units. There are a few functions whose output could rely on the spacing of coordinate values:
polyfit
,polyval
,integrate
,differentiate
(are there any more?)integrate
anddifferentiate
take adatetime_unit
kwarg,polyfit
andpolyval
do not.polyfit
andpolyval
force conversion tons
:xarray/xarray/core/computation.py
Line 2117 in ceb5364
We probably want to relax (2) in the future. Either way it would be good to systematically think about this and at least talk about it in the docstrings.
The text was updated successfully, but these errors were encountered: