home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 234584649

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/432#issuecomment-234584649 https://api.github.com/repos/pydata/xarray/issues/432 234584649 MDEyOklzc3VlQ29tbWVudDIzNDU4NDY0OQ== 1217238 2016-07-22T16:03:23Z 2016-07-22T16:07:20Z MEMBER

.3. Couldn't this make the dict blow up for large datasets? Maybe there could be a flag that lets the user decide whether to leave the data in its current form (could use self.data in case it is a dask array)

Which use cases for this functionality would want the numpy/dask array? If you're planning on serializing to JSON or a similar format, then you'll need to add a custom decoder/encoder to handle arrays.

.6. The trouble with xarray.DataArray is that it doesn't require a name but it can have one. Is that something that we would want to preserve?

Yes, we should preserve the name is possible (serialization formats are much more useful if they are not lossy). Fortunately, None is a perfectly valid value when translated into JSON (as null). So I think we could simply use that as a default.

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