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

enh: pandas-like semi join #439

Merged
merged 5 commits into from
Jul 9, 2024
Merged

enh: pandas-like semi join #439

merged 5 commits into from
Jul 9, 2024

Conversation

FBruzzesi
Copy link
Member

What type of PR is this? (check all applicable)

  • πŸ’Ύ Refactor
  • ✨ Feature
  • πŸ› Bug Fix
  • πŸ”§ Optimization
  • πŸ“ Documentation
  • βœ… Test
  • 🐳 Other

Checklist

  • Code follows style guide (ruff)
  • Tests added
  • Documented the changes

If you have comments or can explain your changes, please do so below.

Disclaimer: I think I never used a semi join before. From the polars docs this seems like it should do the trick 😁

@github-actions github-actions bot added the enhancement New feature or request label Jul 8, 2024
@FBruzzesi
Copy link
Member Author

CI failure is unrelated 😭

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yessssss love semi-joins, amazing stuff @FBruzzesi !

Minor comment - hopefully CI is more robust after #456

(["a", "b"], (nw.col("b") < 5), {"a": [1, 3], "b": [4, 4], "z": [7, 8]}),
],
)
def test_semi_join(
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as this is a new test, could we use the constructor fixture for this one, and maybe create a new tests/frame/join_test file that we can later migrate the join tests to?

@FBruzzesi
Copy link
Member Author

@MarcoGorelli we have another random attacker!

Attack!GIF

Copy link
Member

@MarcoGorelli MarcoGorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

amazing, feel free to merge if you're happy with it!

we should ignore the

FAILED tests/frame/schema_test.py::test_dtypes - DeprecationWarning: Passing a BlockManager to DataFrame is deprecated and will raise in a future version. Use public APIs instead.

warning in pyproject.toml

@FBruzzesi FBruzzesi merged commit 03a9715 into main Jul 9, 2024
19 checks passed
@FBruzzesi FBruzzesi deleted the feat/pandas-semi-join branch July 9, 2024 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants