home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 268669077

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/1152#issuecomment-268669077 https://api.github.com/repos/pydata/xarray/issues/1152 268669077 MDEyOklzc3VlQ29tbWVudDI2ODY2OTA3Nw== 1217238 2016-12-21T23:14:17Z 2016-12-21T23:14:17Z MEMBER

@MaximilianR Let me help clarify:

  • Currently, DataArray does not have a .variables attributes.
  • The state of a DataArray is stored in the form of variables in ._variable (an xarray.Variable) and ._coords (of type OrderedDict[Any, xarray.Variable]).
  • From a user facing API, you can get access to these variables via .variable and .coords.variables (I don't know if the later is clearly documented, but if not it should be).

So the "infinite tree of DataArrrays" only applies if you are accessing them directly via .coords, and under the covers data is represented in a pretty sane way.

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