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

Method __apply__

xarray/coding/cftime_offsets.py:381–383  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

379 _freq = "MS"
380
381 def __apply__(self, other):
382 n = _adjust_n_months(other.day, self.n, 1)
383 return _shift_month(other, n, "start")
384
385 def onOffset(self, date) -> bool:
386 """Check if the given date is in the set of possible dates created

Callers

nothing calls this directly

Calls 2

_adjust_n_monthsFunction · 0.85
_shift_monthFunction · 0.85

Tested by

no test coverage detected