issues: 357156174
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 357156174 | MDU6SXNzdWUzNTcxNTYxNzQ= | 2399 | DataArray.loc fails for duplicates where DataFrame works | 514522 | closed | 0 | 11 | 2018-09-05T10:03:12Z | 2020-09-11T04:32:16Z | 2020-09-11T04:32:16Z | CONTRIBUTOR | ```python import pandas as pd import xarray as xr df = pd.DataFrame(data=[0, 1], index=list("aa")) da = xr.DataArray(df) print(df.loc[list("a")]) # works print(da.loc[{"dim_0": list("a")}]) # fails ``` Xarray fails with the exception
Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2399/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |