issues: 576512167
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 576512167 | MDU6SXNzdWU1NzY1MTIxNjc= | 3835 | 3D DataArray.to_pandas() fails with a bad message | 5635139 | closed | 0 | 1 | 2020-03-05T20:30:06Z | 2020-03-20T17:14:41Z | 2020-03-20T17:14:41Z | MEMBER | Panel is removed from pandas (as a result of the success of xarray! :grin: ), but we're still attempting to call it from MCVE Code Sample```python Your code hereIn [4]: import numpy as np In [1]: import xarray as xr TypeError Traceback (most recent call last) <ipython-input-5-7d1b667d5cac> in <module> ----> 1 xr.DataArray(np.random.rand(2,3,4)).to_pandas() ~/workspace/corpfin/.venv/lib64/python3.6/site-packages/xarray/core/dataarray.py in to_pandas(self) 2267 ) 2268 indexes = [self.get_index(dim) for dim in self.dims] -> 2269 return constructor(self.values, *indexes) 2270 2271 def to_dataframe(self, name: Hashable = None) -> pd.DataFrame: TypeError: object() takes no parameters ``` Expected OutputEither a MultiIndexed DataFrame or a proper error (4D gives Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/3835/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |