home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 737625900

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/4622#issuecomment-737625900 https://api.github.com/repos/pydata/xarray/issues/4622 737625900 MDEyOklzc3VlQ29tbWVudDczNzYyNTkwMA== 2272878 2020-12-03T02:42:24Z 2020-12-03T02:42:24Z CONTRIBUTOR
  • I'd set a default for the name of new dimensions e.g. group_dim: Hashable = "group". I think that's a good choice in most cases.

I thought about doing this at first. However, this could lead to conflicts if the DataArray already has a dimension with that name, which would be a particular problem if people chained together multiple such operations. So I checked what default name xarray uses elsewhere, and it doesn't seem to use default names for the most part (the main exception being DataArray creation). So I think that, in order to avoid unexpected behavior, and to keep consistency, not automatically choosing a name is a better option.

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