home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 62440542

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/277#issuecomment-62440542 https://api.github.com/repos/pydata/xarray/issues/277 62440542 MDEyOklzc3VlQ29tbWVudDYyNDQwNTQy 1217238 2014-11-10T19:33:50Z 2014-11-10T19:33:50Z MEMBER

This is definitely a case where the documentation has gotten out of sync with the implementation (I used to abuse a dataset argument in DataArray.__init__ for a fastpath constructor, but now I have another method for that). The data argument is not really optional right now (unless you want a scalar DataArray containing the value None).

Your proposed functionality does sound useful. Do you want to take a crack at the implementation? The init logic for DataArray is pretty self contained, and it's all at the top of xray/core/dataarray.py. It will require a small amount of reorganization because _infer_coords_and_dims currently assumes it already knows the shape of the data.

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