We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a92d48 commit bcc09aeCopy full SHA for bcc09ae
xarray/coding/frequencies.py
@@ -183,7 +183,7 @@ def _get_annual_rule(self):
183
if len(np.unique(self.index.month)) > 1:
184
return None
185
186
- return {"cs": "YS", "ce": "Y"}.get(month_anchor_check(self.index))
+ return {"cs": "YS", "ce": "YE"}.get(month_anchor_check(self.index))
187
188
def _get_quartely_rule(self):
189
if len(self.month_deltas) > 1:
xarray/tests/test_cftimeindex.py
@@ -1353,7 +1353,7 @@ def test_infer_freq_invalid_inputs():
1353
"freq",
1354
[
1355
"300YS-JAN",
1356
- "Y-DEC",
+ "YE-DEC",
1357
"YS-JUL",
1358
"2YS-FEB",
1359
"QE-NOV",
0 commit comments