MCPcopy Create free account
hub / github.com/pydata/xarray / _get_monthly_rule

Method _get_monthly_rule

xarray/coding/frequencies.py:200–204  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

198 return {"cs": "QS", "ce": "QE"}.get(month_anchor_check(self.index))
199
200 def _get_monthly_rule(self):
201 if len(self.month_deltas) > 1:
202 return None
203
204 return {"cs": "MS", "ce": "ME"}.get(month_anchor_check(self.index))
205
206 @property
207 def deltas(self):

Callers 1

_infer_daily_ruleMethod · 0.95

Calls 2

month_anchor_checkFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected