home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 419580420

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/2399#issuecomment-419580420 https://api.github.com/repos/pydata/xarray/issues/2399 419580420 MDEyOklzc3VlQ29tbWVudDQxOTU4MDQyMA== 1217238 2018-09-07T22:15:33Z 2018-09-07T22:15:33Z MEMBER

Please take a look at xarray's detailed indexing rules: http://xarray.pydata.org/en/stable/indexing.html#indexing-rules

I will ignore the dimension names for now as I don't have much experience with xarray yet.

I think this is the crux of the problem. Put another way: why should the result of indexing be a 1x2 array instead of a 2x1 array? Currently (with the exception of indexing by a scalar with an index with duplicates), xarray determines the shape/dimensions resulting from indexing from the shape/dimensions of the indexers not the array being indexed.

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