Skip to content

Commit 38c45af

Browse files
Update pandas/tests/indexing/test_loc.py
Co-authored-by: Matthew Roeschke <[email protected]>
1 parent 6534bc1 commit 38c45af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/tests/indexing/test_loc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3268,4 +3268,4 @@ def test_loc_nonunique_masked_index(self):
32683268
def test_loc_reindexing_of_empty_index(self):
32693269
# GH 57735
32703270
df = DataFrame(index=[1, 1, 2, 2], data=["1", "1", "2", "2"])
3271-
df.loc[df[0].str.len() > 1, 0] = df[0]
3271+
df.loc[Series([False] * 4], index=df.index, name=0), 0] = df[0]

0 commit comments

Comments
 (0)