home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 242796865

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/987#issuecomment-242796865 https://api.github.com/repos/pydata/xarray/issues/987 242796865 MDEyOklzc3VlQ29tbWVudDI0Mjc5Njg2NQ== 1063143 2016-08-26T17:22:06Z 2016-08-26T17:22:06Z NONE

I see - thanks a lot for the quick response. I knew there was a good reason for this.

I wonder if it is reasonable to return a scalar when there is neither coords nor attrs associated with the return value, or it would be too much ad-hoc thing. For example, in the original example the return value was <xarray.DataArray ()>, which does not have any useful information.

I think this might be reasonable because I only get into this issue when I'm doing an array-wide operation and I know I'm going to get an aggregate scalar and forget to use .values.

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