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
I think when I originally wrote these tests we were on xarray < 0.9
In [1]: import xarray
In [2]: xarray.__version__
Out[2]: '0.9.6'
In [3]: pd.__version__
Out[3]: '0.22.0.dev0+61.g744dcd3'
In [6]: s = Series(range(6), list('abcdef'))
In [7]: s
Out[7]:
a 0
b 1
c 2
d 3
e 4
f 5
dt
In [8]: s.to_xarray()
Out[8]:
<xarray.DataArray (index: 6)>
array([0, 1, 2, 3, 4, 5])
Coordinates:
* index (index) object 'a' 'b' 'c' 'd' 'e' 'f'
In [9]: s.to_xarray().to_series()
Out[9]:
index
a 0
b 1
c 2
d 3
e 4
f 5
dtype: int64
In [10]: s.to_xarray().to_series().index
Out[10]:
MultiIndex(levels=[['a', 'b', 'c', 'd', 'e', 'f']],
labels=[[0, 1, 2, 3, 4, 5]],
names=['index'])
so I was testing for idempotency, e.g. [6] roundtrips to [9].
now it seems we get a MultiIndex back (rather than the original index).
Gotcha, thanks. This was introduced by #17236 and fixed in xarray by pydata/xarray#1548. That will be in our next release, which will come out very soon (we just issued a release candidate).
not sure what is going on here, but I think we need to adjust / make a min for xarray in our tests.
xef #18114
cc @shoyer
The text was updated successfully, but these errors were encountered: