home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 38875079

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/85#issuecomment-38875079 https://api.github.com/repos/pydata/xarray/issues/85 38875079 MDEyOklzc3VlQ29tbWVudDM4ODc1MDc5 1217238 2014-03-27T23:48:05Z 2014-03-27T23:48:05Z MEMBER

For reference, I got the name "DataArray" from this Wes McKinney blog post: http://wesmckinney.com/blog/?p=77

I will add a pull-request with this name change, perhaps along with the focus -> name change. For now, it will include DatasetArray = DataArray to make the change backwards compatible.

It would also be nice to be create to a DataArray (including both dimensions and coordinate values) from scratch without making a Dataset first. Ideally, we could just write

python DataArray(data, x=np.arange(5), y=np.arange(10))

but unfortunately Python doesn't support inferring the order of keyword arguments.

Some options (not necessarily mutually exclusive), in descending (ascending) order of their machine (human) friendliness:

python DataArray(data, [('x', np.arange(5)), ('y', np.arange(10))]) DataArray(data, ['x', 'y'], [np.arange(5), np.arange(10)]) DataArray(data, 'x', np.arange(5), 'y', np.arange(10))

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