We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6534bc1 commit 38c45afCopy full SHA for 38c45af
pandas/tests/indexing/test_loc.py
@@ -3268,4 +3268,4 @@ def test_loc_nonunique_masked_index(self):
3268
def test_loc_reindexing_of_empty_index(self):
3269
# GH 57735
3270
df = DataFrame(index=[1, 1, 2, 2], data=["1", "1", "2", "2"])
3271
- 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