home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 290752232

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/pull/1342#issuecomment-290752232 https://api.github.com/repos/pydata/xarray/issues/1342 290752232 MDEyOklzc3VlQ29tbWVudDI5MDc1MjIzMg== 1217238 2017-03-31T15:55:08Z 2017-03-31T15:55:08Z MEMBER

Something more subtle is going on here.

I can only reproduce this on Python 2, not Python 3. The difference seems to be in what .get_index() returns for an dimension of length 0 without labels: ```

python 2.7

In [11]: mask[:0].get_index('nCells') Out[11]: Index([], dtype='object', name=u'nCells')

python 3.5

In [5]: mask[:0].get_index('nCells') Out[5]: RangeIndex(start=0, stop=0, step=1, name='nCells') ```

I'll investigate a little further and propose a fix.

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