Skip to content
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

feat(python): add support for "outer" mode to frame update method #11688

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

alexander-beedie
Copy link
Collaborator

@alexander-beedie alexander-beedie commented Oct 12, 2023

Closes #11684.

We didn't explicitly support how="outer" here, but did let it through silently. It would mostly work, except in the edge-case described in the linked issue; this PR now explicitly allows for an "outer" mode, explicitly disallows any join strategy that we don't support in update, and better validates all of the expected behaviour.

Also adds more examples and tests, as the various "how" options (outside of the default "left") were either barely tested or not tested at all (and had no supporting examples).

@github-actions github-actions bot added enhancement New feature or an improvement of an existing feature python Related to Python Polars labels Oct 12, 2023
@ritchie46 ritchie46 merged commit 717b4df into pola-rs:main Oct 13, 2023
15 checks passed
@alexander-beedie alexander-beedie deleted the frame-update-outer branch October 13, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or an improvement of an existing feature python Related to Python Polars
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DataFrame.update is ignored is edge case
2 participants