-
Notifications
You must be signed in to change notification settings - Fork 35
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
Make sample argument uniform for normalize and feature_select #311
Conversation
Codecov Report
@@ Coverage Diff @@
## master #311 +/- ##
==========================================
+ Coverage 95.25% 95.34% +0.08%
==========================================
Files 57 57
Lines 3120 3134 +14
==========================================
+ Hits 2972 2988 +16
+ Misses 148 146 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Nice work! Kudos also on the increased test coverage percentage. I thought things looked good with this PR and only had suggestions for enhancements. Generally I left comments in pycytominer/cyto_utils/features.py
which apply to multiple files with the pd.DataFrame.query()
repeated blocks. Please don't hesitate to let me know if you have any questions.
Co-authored-by: Dave Bunten <ekgto445@gmail.com>
Description
Currently, the
samples
argument in thenormalize
function expects a string to be used in apandas.DataFrame().query()
call. However ,thesamples
argument infeature_select()
(and all associated operations) expects thesamples
argument to be a list to be used in apandas.DataFrame().loc[]
call.Here, I update all
feature_select()
operations to expect thepandas.DataFrame.query()
call. I also update the documentation and tests.What is the nature of your change?
Checklist
Please ensure that all boxes are checked before indicating that a pull request is ready for review.