-
Notifications
You must be signed in to change notification settings - Fork 172
[ENH] Add numba to conditional_join #1131
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
Conversation
If anyone has some time, I need help on conditional import; my initial attempt with an if clause fails during testing with a |
🚀 Deployed on https://deploy-preview-1131--pyjanitor.netlify.app |
I suppose it's because you didn't add |
Is there a clear performance comparison? |
@Zeroto521 I updated the PR to include timings - depending on the size, it is about 3x faster with numba; |
Codecov Report
@@ Coverage Diff @@
## dev #1131 +/- ##
==========================================
- Coverage 97.37% 97.32% -0.05%
==========================================
Files 77 77
Lines 3163 3217 +54
==========================================
+ Hits 3080 3131 +51
- Misses 83 86 +3 |
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.
@samukweku I wouldn't worry about testing the conditional import for Numba. However, I think it's important to test the line on any_null
, as it seems to be one crucial code path in the functionality of the code. Hope you're okay with that, I'll mark as "Request changes" for now.
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.
I approve! Thank you, @samukweku!
If we can, let's get in one more review before merging. Otherwise, I'll merge on the weekend. |
Ok, let's merge. Otherwise this PR is gonna get stale 😄. |
Please describe the changes proposed in the pull request:
first
andlast
matches for a single conditional join, and only for less than/greater than, and either of the dataframes is unsortedSpeed tests (as always, take with a pinch of salt)
This PR relates #1102 .
PR Checklist
Please ensure that you have done the following:
<your_username>
:dev
, but rather from<your_username>
:<feature-branch_name>
.AUTHORS.md
.CHANGELOG.md
under the latest version header (i.e. the one that is "on deck") describing the contribution.Automatic checks
There will be automatic checks run on the PR. These include:
Relevant Reviewers
Please tag maintainers to review.