You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem is that it's ambiguous which array you would like to summarize. I suppose we could default to using all noncoordinates? That would be similar to how pandas does its DataFrame.groupby methods.
We currently don't implement methods like ds.mean(), which it would make sense to implement before adding the groupby version. But I do think it would be perfectly consistent to say that the mean of a dataset is the dataset given by taking the mean of every variable in the dataset.
Activity
shoyer commentedon May 12, 2014
The problem is that it's ambiguous which array you would like to summarize. I suppose we could default to using all noncoordinates? That would be similar to how pandas does its DataFrame.groupby methods.
jhamman commentedon May 12, 2014
Right, although it doesn't have to be ambiguous. Why not just summarize each group along the
group_dim?shoyer commentedon May 12, 2014
We currently don't implement methods like
ds.mean(), which it would make sense to implement before adding the groupby version. But I do think it would be perfectly consistent to say that the mean of a dataset is the dataset given by taking the mean of every variable in the dataset.Implementation of Dataset.groupby summary methods
use `PYPI_USERNAME` GH action secret (pydata#122)