home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 398152064

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/issues/2237#issuecomment-398152064 https://api.github.com/repos/pydata/xarray/issues/2237 398152064 MDEyOklzc3VlQ29tbWVudDM5ODE1MjA2NA== 1197350 2018-06-18T18:32:42Z 2018-06-18T18:32:42Z MEMBER

I agree that single value chunks illustrates the problem more clearly. I think this example is most clean if you do it like this python import xarray as xr import dask.array as dsa ds = xr.Dataset({'foo': (['x'], dsa.ones(4, chunks=1))}, coords={'x': (['x'], [0, 1, 2, 3]), 'bar': (['x'], ['a', 'a', 'b', 'b']), 'baz': (['x'], ['a', 'b', 'a', 'b'])})

ds.foo.groupby('bar').apply(lambda x: x).data.visualize():

ds.foo.groupby('baz').apply(lambda x: x).data.visualize()

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