-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Fix dataframe.update not updating dtype #55509 v2 #57637
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
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
93ea131
TST: add a test for preserving dtype while calling frame.update (#55509)
aureliobarbosa eb963df
TST: Add a test for frame.update raising on duplicate argument indexe…
aureliobarbosa d5a1085
TST: frame.update accepts duplicate frame index with unique argument…
aureliobarbosa 02c1b77
BUG: fix dataframe.update not preserving dtypes (#55509)
aureliobarbosa 5169022
DOC: Add line indicating bug fix #55509
aureliobarbosa d7f63a1
DOC: add note on duplicate indices on parameter other (#55509)
aureliobarbosa 1fd2be9
TST: assure test_update_preserve_dtype checks dtype
aureliobarbosa d948e0a
TST: assure test_update_on_duplicate_frame_unique_argument_index chec…
aureliobarbosa dbdff5c
TST: Use np.intc instead of np.int64 on dtype tests for frame.update …
aureliobarbosa b2c915f
Merge remote-tracking branch 'upstream/main' into fix_gh55509_v2
aureliobarbosa f9d601a
Merge remote-tracking branch 'upstream/main' into fix_gh55509_v2
aureliobarbosa 6de3fce
DOC: Fix separator size (#55509). Minor issue.
aureliobarbosa a62684f
DOC: fix error messages on frame.update (PR #57637)
aureliobarbosa 8a28fb0
TST: add test_update_raises_without_intersection on DataFrame (#55509).
aureliobarbosa f08e92e
Rename variable.
aureliobarbosa 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
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add a note that this is not supported to the docstring. There isn't currently a notes section, something like this:
pandas/pandas/core/frame.py
Lines 1450 to 1454 in 737d390
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rhshadrach Done.
DataFrame.reindex
raises on the same condition and does not mention it on the docs. What about adding a similar note there?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Slight preference on keeping this PR just modifying update, but no strong objection to modifying the reindex docs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok. It can be done in another PR.