Skip to content
Prev Previous commit
Next Next commit
use better test name
  • Loading branch information
matiaslindgren committed Jul 29, 2024
commit efba5a55b6cd9276166bbaf8851b0596e506e4cc
2 changes: 1 addition & 1 deletion pandas/tests/indexing/test_loc.py
Original file line number Diff line number Diff line change
Expand Up @@ -3273,7 +3273,7 @@ def test_loc_index_alignment_for_series(self):
expected = DataFrame({"a": [999, 200], "b": [3, 4]})
tm.assert_frame_equal(expected, df)

def test_loc_assign_to_should_not_raise(self):
def test_loc_reindexing_of_empty_index(self):
# GH 57735
df = DataFrame(index=[1, 1, 2, 2], data=["1", "1", "2", "2"])
df.loc[df[0].str.len() > 1, 0] = df[0]