Skip to content

Commit

Permalink
Added result and expected variables for both tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DhruvBShetty committed Dec 22, 2024
1 parent a1c5fec commit d6604ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pandas/tests/indexing/test_loc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3306,7 +3306,10 @@ def test_loc_setitem_matching_index(self):

# Test matching indices
s.loc[["a", "b"]] = s1
tm.assert_series_equal(s[["a", "b"]], s1)

result = s[["a", "b"]]
expected = s1
tm.assert_series_equal(result, expected)

# Test unmatched indices
s.loc[["a", "b"]] = s2
Expand Down

0 comments on commit d6604ee

Please sign in to comment.