Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
15 commits
Select commit Hold shift + click to select a range
File filter

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
TST: assure test_update_on_duplicate_frame_unique_argument_index chec…
…ks dtype
  • Loading branch information
aureliobarbosa committed Mar 1, 2024
commit d948e0a69f7699e43b11b337466ddce97be3adb6
6 changes: 3 additions & 3 deletions pandas/tests/frame/methods/test_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,8 @@ def test_update_raises_on_duplicate_argument_index(self):

def test_update_on_duplicate_frame_unique_argument_index(self):
# GH#55509
df = DataFrame({"a": [1, 1, 1]}, index=[1, 1, 2])
other = DataFrame({"a": [2, 3]}, index=[1, 2])
expected = DataFrame({"a": [2, 2, 3]}, index=[1, 1, 2])
df = DataFrame({"a": [1, 1, 1]}, index=[1, 1, 2], dtype=np.dtype("int_"))
other = DataFrame({"a": [2, 3]}, index=[1, 2], dtype=np.dtype("int_"))
expected = DataFrame({"a": [2, 2, 3]}, index=[1, 1, 2], dtype=np.dtype("int_"))
df.update(other)
tm.assert_frame_equal(df, expected)