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

Method _get_quartely_rule

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

Source from the content-addressed store, hash-verified

189 return {"cs": "YS", "ce": "YE"}.get(month_anchor_check(self.index))
190
191 def _get_quartely_rule(self):
192 if len(self.month_deltas) > 1:
193 return None
194
195 if self.month_deltas[0] % 3 != 0:
196 return None
197
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:

Callers 1

_infer_daily_ruleMethod · 0.95

Calls 2

month_anchor_checkFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected