issues: 325475880
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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 325475880 | MDU6SXNzdWUzMjU0NzU4ODA= | 2173 | Formatting error in conjunction with pandas.DataFrame | 1200058 | closed | 0 | 6 | 2018-05-22T21:49:24Z | 2021-04-13T15:04:51Z | 2021-04-13T15:04:51Z | NONE | Code Sample, a copy-pastable example if possible```python import pandas as pd import numpy as np import xarray as xr sample_data = np.random.uniform(size=[2,2000,10000]) x = xr.Dataset({"sample_data": (sample_data.shape, sample_data)}) print(x) df = pd.DataFrame({"x": [1,2,3], "y": [2,4,6]})
x["df"] = df
print(x)
```
Problem descriptionPrinting a xarray.Dataset results in an error when containing a pandas.DataFrame Expected OutputShould print string representation of Dataset Output of
|
{
"url": "https://api.github.com/repos/pydata/xarray/issues/2173/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
completed | 13221727 | issue |
