Skip to content

BUG: Fix 57735 #59335

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jul 29, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]