标签: python python-xarray
当使用Python 2.7的xarray包时,是否可以像在熊猫中一样分组多个参数?实质上,这样的操作如下:
data.groupby(['time.year','time.month']).mean()
如果您想获得数据集的每年和每月的平均值。
答案 0 :(得分:3)
不幸的是,xarray还不支持使用多个参数进行分组。这是something we would like to support,它会相对简单,但是没有人有时间实现它(欢迎提供!)。