home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 236097486

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/921#issuecomment-236097486 https://api.github.com/repos/pydata/xarray/issues/921 236097486 MDEyOklzc3VlQ29tbWVudDIzNjA5NzQ4Ng== 1217238 2016-07-29T05:26:22Z 2016-07-29T05:26:22Z MEMBER

What are the arguments against having dims be a tuple for both DataArray & Datasets?

I guess that's a third option! In that case, we'd have to add shape to Dataset, too, to ensure there is some way to get size information.

The main downside is that we'd still be stuck without any idea way to get dimension sizes by name -- ds.shape[ds.get_axis_num('time')] is pretty bad. Also, I'm not sure how many use cases there are for actually pulling out the first dimension of a dataset (or it's shape) by position, given that dimension order is currently sorted independently of dimension order on any of its data arrays.

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