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

Class MonthEnd

xarray/coding/cftime_offsets.py:391–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

389
390
391class MonthEnd(BaseCFTimeOffset):
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
400 using a length-one version of this offset class."""
401 return date.day == date.daysinmonth
402
403
404_MONTH_ABBREVIATIONS = {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…