home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 186680248

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association active_lock_reason draft pull_request body reactions performed_via_github_app state_reason repo type
186680248 MDU6SXNzdWUxODY2ODAyNDg= 1072 Allow concat() to drop/replace duplicate index labels? 5572303 closed 0     26 2016-11-01T23:59:56Z 2017-01-23T22:41:22Z 2017-01-23T22:41:22Z CONTRIBUTOR      

Right now, ```

coords_l, coords_r = [0, 1, 2], [1, 2, 3] missing_3 = xr.DataArray([11, 12, 13], [(dim, coords_l)]) missing_0 = xr.DataArray([21, 22, 23], [(dim, coords_r)]) together = xr.concat([missing_3, missing_0], dim='x') together <xarray.DataArray 'missing_3' (x: 6)> array([11, 12, 13, 21, 22, 23]) Coordinates: * x (x) int64 0 1 2 1 2 3 together.sel(x=1) <xarray.DataArray 'missing_3' (x: 2)> array([12, 21]) Coordinates: * x (x) int64 1 1 ```

Would it be OK to introduce a kwarg ("replace"?) that replaces cells of identical coordinates from right to left?

That would render ```

together <xarray.DataArray 'missing_3' (x: 6)> array([11, 21, 22, 23]) Coordinates: * x (x) int64 0 1 2 3 ```

Some people might even want to drop all cells with coordinate collisions (probably not us). If that's the case then the kwarg would be ternary.....

{
    "url": "https://api.github.com/repos/pydata/xarray/issues/1072/reactions",
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
  completed 13221727 issue

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 26 rows from issue in issue_comments
Powered by Datasette · Queries took 235.852ms · About: xarray-datasette