You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Formatting error in conjunction with pandas.DataFrame #2173
Printing a xarray.Dataset results in an error when containing a pandas.DataFrame
Expected Output
Should print string representation of Dataset
Output of xr.show_versions()
Details
/usr/lib/python3.6/site-packages/h5py/__init__.py:36: FutureWarning: Conversion of the second argument of issubdtype from `float` to `np.floating` is deprecated. In future, it will be treated as `np.float64 == np.dtype(float).type`.
from ._conv import register_converters as _register_converters
I can reproduce this on master so there's still more to do to fix this. Maybe we could try sorting using the str representation of the dimension names?
Activity
shoyer commentedon May 22, 2018
This is a manifestation of the same issue as #2172: you are using integers as dimension names, which we don't support very well.
In this case, you end up with mixed integers/strings as dimension names, which means our internal use of
sorted()inrepr(x)fails.stale commentedon Apr 23, 2020
In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here or remove the
stalelabel; otherwise it will be marked as closed automaticallymax-sixty commentedon Apr 23, 2020
Closed by #2174
keewis commentedon Apr 23, 2020
I can reproduce this on master so there's still more to do to fix this. Maybe we could try sorting using the
strrepresentation of the dimension names?keewis commentedon Apr 23, 2020
This works:
But maybe it is too naive?
keewis commentedon Apr 13, 2021
let's continue this in #5148