Python xarray:按多个参数分组

Eng*_*tan 7 python python-xarray

当使用 Python 2.7 的 xarray 包时,是否可以像 pandas 那样对多个参数进行分组?本质上,像这样的操作:

data.groupby(['time.year','time.month']).mean()
Run Code Online (Sandbox Code Playgroud)

如果您想获取数据集每年和每月的平均值。

sho*_*yer 5

不幸的是,xarray 尚不支持使用多个参数进行分组。这是我们想要支持的东西,而且相对简单,但还没有人有时间来实现它(欢迎贡献!)。