home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1338119644

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/7350#issuecomment-1338119644 https://api.github.com/repos/pydata/xarray/issues/7350 1338119644 IC_kwDOAMm_X85PwhXc 2448579 2022-12-05T20:22:43Z 2022-12-05T20:25:31Z MEMBER

One way to fix this would be to never associate non-dim coords when creating a DataArray for a dimension coordinate. But I think it may be better to encourage users to use .variable instead.

The behavior I'd advocate for is that a subsetting/selection operation should never add new coordinates that weren't previously present.

What do you mean by "previously present"? We'd have to track state of some sort, which doesn't seem ideal. Alternatively, the user could use .sel(time=[0]). That would preserve the identity of time as a dimension coordinate (of size 1), and it would not get associated when extracting lat

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