issues: 324409064
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 324409064 | MDU6SXNzdWUzMjQ0MDkwNjQ= | 2160 | pandas-0.23 breaks stack with duplicated indices | 6213168 | closed | 0 | 3 | 2018-05-18T13:23:26Z | 2018-05-26T03:29:46Z | 2018-05-26T03:29:46Z | MEMBER | In this script: ``` import pandas import xarray df = pandas.DataFrame( [[1, 2], [3, 4]], index=['foo', 'foo'], columns=['bar', 'baz']) print(df.stack()) a = xarray.DataArray(df) print(a.stack(s=a.dims)) ``` The first part works both with pandas 0.22 and 0.23. The second part works in xarray 0.10. 4 + pandas 0.22, and crashes with pandas 0.23:
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2160/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |