-
Notifications
You must be signed in to change notification settings - Fork 22
Add percentage null assertion #290
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
|
CI passed minus pre-commit, which failed on formatting but you can just override. Maybe my ruff is out of sync. |
|
Any update here? |
|
So I've thought about this some more and I actually disagree for several reasons.
A more philosophical point - I don't see an issue with method proliferation if the proliferation spawns helpful methods. You do already have the Let me know what you think, but I do understand your opinion! |
|
Okay... I'm coming around to your point of view! You're right in that a library should contain helpful methods (if that's a lot, that's fine: it's a big problem space). And I want this library to be useful, so I'm agreement now. So, yeah, let's resolve to getting this method put into the package. Would you be okay with changing the method name a little? Maybe to For the icon I'm using Sketch and I could totally draw one up for this! For now (to move the PR along), just borrow another method's icon (I'll pass the finished one over before merging this). We don't currently use doctest, but, I totally wouldn't mind if you got that going for this PR (up to you!). |
|
Awesome, I'll get this going! |
d92ed1f to
ba1b3b5
Compare
|
@rich-iannone This should be good to go, but I'd appreciate some criticism of the logic :) |
rich-iannone
left a comment
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.
LGTM and thanks so much for the contribution!


Summary
This method checks the percentage of null values against a column in a dataset. I added some tests and documentation. I'm seeking review, since navigating tolerance is can be confusing.
I can add examples for doctests, if you guys use those?
The big thing missing is the icon, which prohibits usage with
get_tabular_report. See the xfail test I added which will pass once the icon is ok. Is there some software you use to generate those. Thanks.Related GitHub Issues and PRs
Checklist