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
In xarray 0.12.0 the following example produces a Dataset with no indexes:
In [1]: import xarray as xr
In [2]: da = xr.DataArray([1], [('x', [0])], name='a')
In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes
Out[3]:
Expected Output
In xarray 0.11.3 the roundtrip sequence above properly recovers the initial index along the 'x' dimension:
In [1]: import xarray as xr
In [2]: da = xr.DataArray([1], [('x', [0])], name='a')
In [3]: da.to_dataset().isel(x=0).expand_dims('x').indexes
Out[3]: x: Int64Index([0], dtype='int64', name='x')
Code Sample, a copy-pastable example if possible
In xarray 0.12.0 the following example produces a Dataset with no indexes:
Expected Output
In xarray 0.11.3 the roundtrip sequence above properly recovers the initial index along the
'x'
dimension:Output of
xr.show_versions()
The text was updated successfully, but these errors were encountered: