Skip to content

Commit bf54a0b

Browse files
TST: edit test_take to preserve original dtype
1 parent 74d45ae commit bf54a0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/test_generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,7 @@ def test_take(self):
18701870
tm.makeObjectSeries()]:
18711871
out = s.take(indices)
18721872
expected = Series(data=s.values.take(indices),
1873-
index=s.index.take(indices))
1873+
index=s.index.take(indices), dtype=s.dtype)
18741874
tm.assert_series_equal(out, expected)
18751875
for df in [tm.makeTimeDataFrame()]:
18761876
out = df.take(indices)

0 commit comments

Comments
 (0)