Skip to content

Commit ecc3b2e

Browse files
authored
x-array test warnings (#33555)
1 parent 989f0a8 commit ecc3b2e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/generic/test_to_xarray.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def test_to_xarray_index_types(self, indices):
9999

100100
from xarray import DataArray
101101

102-
s = Series(range(len(indices)), index=indices)
102+
s = Series(range(len(indices)), index=indices, dtype="int64")
103103
s.index.name = "foo"
104104
result = s.to_xarray()
105105
repr(result)
@@ -123,7 +123,7 @@ def test_to_xarray(self):
123123
tm.assert_almost_equal(list(result.coords.keys()), ["foo"])
124124
assert isinstance(result, DataArray)
125125

126-
s = Series(range(6))
126+
s = Series(range(6), dtype="int64")
127127
s.index.name = "foo"
128128
s.index = pd.MultiIndex.from_product(
129129
[["a", "b"], range(3)], names=["one", "two"]

0 commit comments

Comments
 (0)