home / github / issue_comments

Menu
  • GraphQL API
  • Search all tables

issue_comments: 397370518

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/2233#issuecomment-397370518 https://api.github.com/repos/pydata/xarray/issues/2233 397370518 MDEyOklzc3VlQ29tbWVudDM5NzM3MDUxOA== 1217238 2018-06-14T17:12:35Z 2018-06-14T17:12:35Z MEMBER

We currently enforce the requirement that non-1D variable cannot be assigned in a Dataset with a name that matches one of their dimensions. This is somewhat useful, because it means that dataset.variables[dim] is guaranteed to be a 1D set of coordinate labels, in the form of a xarray.IndexVariable backed by a pandas.Index.

It might make sense to relax this requirements part of the eventual "explicit indexes" refactor (https://github.com/pydata/xarray/issues/1603). Then the right way to get out an index will simply be dataset.indexes[dim] (which may or may not exist). However, this would definitely be a breaking change: it is likely that at least some code (inside and outside xarray) relies on this assumption.

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