Skip to content

Commit

Permalink
[fix] FutureWarning: Downcasting behavior
Browse files Browse the repository at this point in the history
- Pandas 3.0 will not auto change type from objects to e.g. numerical
  use infer_types
  • Loading branch information
DrYak committed Jul 3, 2024
1 parent 42dd808 commit 77a8b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lollipop/preprocessors.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def general_preprocess(
# self.df_tally = self
self.df_tally = self.df_tally.replace(
["extra", "mut", "shared", "revert", "subset"], 1
)
).infer_objects()

# remove uninformative mutations
variants_columns = list(set(variants_list) & set(self.df_tally.columns))
Expand Down

0 comments on commit 77a8b9a

Please sign in to comment.