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

Remove future Pandas warnings and sort CRISPRessoCompare tables #389

Merged
merged 2 commits into from Mar 14, 2024

Conversation

Colelyman
Copy link
Contributor

This PR (by @mbowcut2) refactors the code so that the future Panadas warnings are ignored.

mbowcut2 and others added 2 commits March 11, 2024 16:15
* refactor errors='ignore' to try except

* refactored integer slice to iloc[]

* moved to_numeric try except to function

* Refactor to_numeric_ignore_errors to to_numeric_ignore_columns

This change is slightly cleaner because it addresses the root issue that some
columns are strings (and can therefore not be converted to numeric types). Now
if an error does occur when converting the dfs to numeric types it won't be
swallowed up.

* Add documentation to to_numeric_ignore_columns

---------

Co-authored-by: Cole Lyman <cole@colelyman.com>
@Colelyman
Copy link
Contributor Author

It also makes the sorting of the pandas tables in CRISPRessoCompare consistent across runs (by @Snicker7).

@Colelyman Colelyman changed the title Remove future Pandas warnings Remove future Pandas warnings and sort CRISPRessoCompare tables Mar 14, 2024
@kclem kclem merged commit 0af8fe1 into pinellolab:master Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants