home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 841244252

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/4824#issuecomment-841244252 https://api.github.com/repos/pydata/xarray/issues/4824 841244252 MDEyOklzc3VlQ29tbWVudDg0MTI0NDI1Mg== 10194086 2021-05-14T13:28:50Z 2021-05-14T13:28:50Z MEMBER

I add the example from https://github.com/pydata/xarray/pull/4753#discussion_r631399543 here. I am not 100% if that is the same problem or not:

```python def combine_by_coords_problem(name, join="override"):

ds0 = xr.Dataset(coords={"x1": [1, 2, 3], name: [10, 20, 30]})
ds1 = xr.Dataset(coords={"x1": [4, 5, 6], name: [40, 50, 60]})

return xr.combine_by_coords([ds0, ds1], join=join)

combine_by_coords_problem("x0") # concatenates 1, 2, 3, 4, 5, 6 combine_by_coords_problem("x2") # concatenates 10, 20, 30, 40, 50, 60 ```

with join= - "exact": error - "left", "right", "inner", "override": ambiguous result - "outer": sensible result

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