We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent efba5a5 commit 7f937d8Copy full SHA for 7f937d8
pandas/tests/indexing/test_loc.py
@@ -3276,4 +3276,4 @@ def test_loc_index_alignment_for_series(self):
3276
def test_loc_reindexing_of_empty_index(self):
3277
# GH 57735
3278
df = DataFrame(index=[1, 1, 2, 2], data=["1", "1", "2", "2"])
3279
- df.loc[df[0].str.len() > 1, 0] = df[0]
+ df.loc[Series([False] * 4], index=df.index, name=0), 0] = df[0]
0 commit comments