issue_comments: 606135881
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/3910#issuecomment-606135881 | https://api.github.com/repos/pydata/xarray/issues/3910 | 606135881 | MDEyOklzc3VlQ29tbWVudDYwNjEzNTg4MQ== | 5635139 | 2020-03-30T17:29:36Z | 2020-03-30T17:29:36Z | MEMBER | Yes exactly! And I think in-place might be surprising if it changed the indexes of the left item; i.e. if you got this result from ```python In [17]: ...: ...: import numpy as np ...: import xarray as xr ...: ...: n = 5 ...: ...: d1 = np.arange(1, n+1) ...: np.random.shuffle(d1) ...: A = xr.DataArray(np.ones(n), coords=[('dim', d1)]) ...: ...: d2 = np.arange(n) ...: np.random.shuffle(d2) ...: B = xr.DataArray(np.ones(n), coords=[('dim', d2)]) ...: ...: A + B Out[17]: <xarray.DataArray (dim: 4)> array([2., 2., 2., 2.]) Coordinates: * dim (dim) int64 3 2 1 4 ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
589632313 |