home / github / issues

Menu
  • GraphQL API
  • Search all tables

issues: 88075523

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
88075523 MDU6SXNzdWU4ODA3NTUyMw== 432 Tools for converting between xray.Dataset and nested dictionaries/JSON 1217238 closed 0     6 2015-06-13T22:25:28Z 2016-08-11T21:54:51Z 2016-08-11T21:54:51Z MEMBER      

This came up in discussion with @freeman-lab -- xray does not have direct support for converting datasets to or from nested dictionaries (i.e., as could be serialized in JSON).

This is quite straightforward to implement oneself, of course, but there's something to be said for making this more obvious. I'm thinking of a serialization format that looks something like this:

{ 'variables': { 'temperature': { 'dimensions': ['x'], 'data': [1, 2, 3], 'attributes': {} } ... } 'attributes': { 'title': 'My example dataset', ... } }

The solution here would be to either: 1. add a few examples to the IO documentation of how to roll this one-self, or 2. create a few helper methods/functions to make this even easier: xray.Dataset.to_dict/xray.read_dict.

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/432/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 3 rows from issues_id in issues_labels
  • 6 rows from issue in issue_comments
Powered by Datasette · Queries took 5.685ms · About: xarray-datasette