Closed
Description
Since we wrote resample
in xarray, pandas updated resample to have a groupyby-like API (e.g., df.resample('24H').mean()
vs. the old df.resample('24H')
that uses the mean by default).
It would be nice to redo the xarray resample API to match, e.g., ds.resample(time='24H').mean()
vs ds.resample('time', '24H')
. This would solve a few use cases, including grouped-resample arithmetic, iterating over groups and (mostly) take care of the need for pd.TimeGrouper
support (#364). If we use **kwargs
for matching dimension names, this could be done with a minimally painful deprecation cycle.