Skip to content

Commit 3596f76

Browse files
committed
Explicitly assign the expected result
1 parent 319d717 commit 3596f76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexing/test_loc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def test_loc_dtype():
6464
# GH 60600
6565
df = DataFrame([["a", 1.0, 2.0], ["b", 3.0, 4.0]])
6666
result = df.loc[0, [1, 2]]
67-
expected = df[[1, 2]].loc[0]
67+
expected = Series([1.0, 2.0], index=[1, 2], dtype=float, name=0)
6868
tm.assert_series_equal(result, expected)
6969

7070

0 commit comments

Comments
 (0)