issue_comments: 658932130
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/4228#issuecomment-658932130 | https://api.github.com/repos/pydata/xarray/issues/4228 | 658932130 | MDEyOklzc3VlQ29tbWVudDY1ODkzMjEzMA== | 2448579 | 2020-07-15T18:32:36Z | 2020-07-15T18:32:36Z | MEMBER | You could do it with "advanced indexing" by providing a dataarray to the ``` python da = xr.DataArray([[1, 2, 3], [4,5,6]], dims=["coord1", "coord2"], coords={"coord2": [10, 20, 30], "coord1": [1,2]}) i1 = xr.DataArray([1, 0], dims=["z"], coords={"z": ["label1", "label2"]}) i2 = xr.DataArray([2, 1], dims=["z"], coords={"z": ["label1", "label2"]}) da.isel(coord1=i1, coord2=i2, drop=True).to_dataframe(name="asd") ```
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
657466413 |