From 77a8b9ade5eef79e673002d910f9ee5b838aef89 Mon Sep 17 00:00:00 2001 From: Ivan Blagoev Topolsky Date: Thu, 4 Jul 2024 00:02:33 +0200 Subject: [PATCH] [fix] FutureWarning: Downcasting behavior - Pandas 3.0 will not auto change type from objects to e.g. numerical use infer_types --- lollipop/preprocessors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lollipop/preprocessors.py b/lollipop/preprocessors.py index 017abdc..46710f2 100644 --- a/lollipop/preprocessors.py +++ b/lollipop/preprocessors.py @@ -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))