issues: 454073421
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
454073421 | MDU6SXNzdWU0NTQwNzM0MjE= | 3007 | NaN values for variables when converting from a pandas dataframe to xarray.DataSet | 10137 | closed | 0 | 5 | 2019-06-10T09:15:21Z | 2020-03-23T13:15:16Z | 2020-03-23T13:15:15Z | NONE | Code Sample, a copy-pastable example if possible```python
wind_surface hurs bui fwi
lat lon time [5 rows x 10 columns] In [81]: df.to_xarray() Problem descriptionHi, I get those nan values for variables when I try to convert from a pandas.DataFrame with MultiIndex to a xarray.DataArray. The same happend if I try to build a xarray.Dataset and then unstack the multiindex as shown below:
Regards Output of
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/3007/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |