home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 255497739

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-255497739 https://api.github.com/repos/pydata/xarray/issues/921 255497739 MDEyOklzc3VlQ29tbWVudDI1NTQ5NzczOQ== 1217238 2016-10-22T01:08:52Z 2016-10-22T01:08:52Z MEMBER

With optional indexes (#1017) meaning that ds.coords[...].size may not always succeed (OK, depending on some implementation choices), the need for a consistent way to look up dimension sizes becomes even more severe.

Rather than resolving the type inconsistency of dims, we could simply add a new attribute sizes to both Dataset and DataArray that is exactly equivalent to Dataset.dims. The Dataset API ends up a little bit redundant, but we have a consistent way to access this information.

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