home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 554574425

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions performed_via_github_app issue
https://github.com/pydata/xarray/pull/3527#issuecomment-554574425 https://api.github.com/repos/pydata/xarray/issues/3527 554574425 MDEyOklzc3VlQ29tbWVudDU1NDU3NDQyNQ== 14808389 2019-11-15T23:55:14Z 2019-11-15T23:55:14Z MEMBER

Which behaviour can you reproduce?

python ds = xr.Dataset( data_vars={ "a": ( ("x", "y"), [[1, 11, 26], [2, 12, 22], [3, 13, 23], [4, 16,24], [5, 15, 25]], ) }, coords={"x": [1, 1, 1, 2, 2], "y": [0, 0, 1]}, ).expand_dims({"z": [0, 1, 1, 2, 2]}) a_ds = ds.groupby("y").std().a a_da = ds.a.groupby("y").std() a_ds.identical(a_da) which seems to be the same as python a_ds = ds.groupby("y").mean("y").a a_da = ds.a.groupby("y").mean("y") a_ds.identical(a_da) My impression is that this puts the dimension grouped over to the front: - before: ds.a.dims == ("z", "x", "y") - afterwards: a_ds.dims == ("y", "z", "x")

But I agree this discussion does not really belong here. So, thanks all!

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  522523336
Powered by Datasette · Queries took 0.515ms · About: xarray-datasette