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

Method __apply__

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

Source from the content-addressed store, hash-verified

392 _freq = "ME"
393
394 def __apply__(self, other):
395 n = _adjust_n_months(other.day, self.n, other.daysinmonth)
396 return _shift_month(other, n, "end")
397
398 def onOffset(self, date) -> bool:
399 """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