79702627

Date: 2025-07-15 20:35:54
Score: 1.5
Natty:
Report link

Xarray's new SeasonResampler can do this:

import xarray as xr
from xarray.groupers import SeasonResampler

ds = xr.tutorial.open_dataset('air_temperature')
ds.resample(time=SeasonResampler(["ONDJ"])).mean()
Reasons:
  • Probably link only (1):
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dcherian