pydata / xarray

N-D labeled arrays and datasets in Python
https://xarray.dev
Apache License 2.0
3.57k stars 1.07k forks source link

refactor GroupBy internals #9389

Closed dcherian closed 1 month ago

dcherian commented 1 month ago
  1. Simplify ResolvedGrouper by moving logic to EncodedGroups
  2. Stack outside ResolvedGrouper in GroupBy.init to prepare for multi-variable GroupBy

Broken out form #9372

dcherian commented 1 month ago

Thanks! That's good enough. It mostly undoes a previous refactor, haha.