Skip to content

Commit f13da94

Browse files
benbovymathause
andauthored
fix doctests: pandas 2.1 MultiIndex repr with nan (#8141)
Co-authored-by: Mathias Hauser <mathause@users.noreply.github.com>
1 parent e9c1962 commit f13da94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xarray/core/dataarray.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2904,9 +2904,9 @@ def to_unstacked_dataset(self, dim: Hashable, level: int | Hashable = 0) -> Data
29042904
b (x) int64 0 3
29052905
>>> stacked = data.to_stacked_array("z", ["x"])
29062906
>>> stacked.indexes["z"]
2907-
MultiIndex([('a', 0.0),
2908-
('a', 1.0),
2909-
('a', 2.0),
2907+
MultiIndex([('a', 0),
2908+
('a', 1),
2909+
('a', 2),
29102910
('b', nan)],
29112911
name='z')
29122912
>>> roundtripped = stacked.to_unstacked_dataset(dim="z")

0 commit comments

Comments
 (0)