Skip to content

Commit dd09bdd

Browse files
authored
adapted the docstring of xarray.DataArray.differentiate (#8127)
Co-authored-by: afisc <mail@alexfischer.eu>
1 parent 1043a9e commit dd09bdd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

xarray/core/dataarray.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5193,9 +5193,10 @@ def differentiate(
51935193
The coordinate to be used to compute the gradient.
51945194
edge_order : {1, 2}, default: 1
51955195
N-th order accurate differences at the boundaries.
5196-
datetime_unit : {"Y", "M", "W", "D", "h", "m", "s", "ms", \
5196+
datetime_unit : {"W", "D", "h", "m", "s", "ms", \
51975197
"us", "ns", "ps", "fs", "as", None}, optional
5198-
Unit to compute gradient. Only valid for datetime coordinate.
5198+
Unit to compute gradient. Only valid for datetime coordinate. "Y" and "M" are not available as
5199+
datetime_unit.
51995200
52005201
Returns
52015202
-------

0 commit comments

Comments
 (0)