home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 541138033

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/3381#issuecomment-541138033 https://api.github.com/repos/pydata/xarray/issues/3381 541138033 MDEyOklzc3VlQ29tbWVudDU0MTEzODAzMw== 1217238 2019-10-11T16:42:11Z 2019-10-11T16:42:11Z MEMBER

Sparse only lets you combine arrays with different fill values if the result would also have a fixed value. That's why you can multiply or add but not concatenate, e.g., assert x.fill_value == 1 and y.fill_value == 2 assert (x + y).fill_value == 3 assert (x * y).fill_value == 2 np.stack([x, y]) # error, would need a mixture of different fill values to represent

Multiple fill values simply aren't representable by sparse's data model.

I think you could work this by wrapping the sparse arrays in dask first.

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