From 1032aa21a210c3496a53374fea00f81465a3230a Mon Sep 17 00:00:00 2001 From: "Hung-Lin, Chen" Date: Wed, 25 Oct 2023 00:04:57 +0800 Subject: [PATCH] bugfix: df.append is deprecated, replace with pd.concat #248 --- app/Heatmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Heatmap.py b/app/Heatmap.py index 6d527fb..82d1cfc 100644 --- a/app/Heatmap.py +++ b/app/Heatmap.py @@ -94,7 +94,7 @@ def create_categories(self, class_dict, df): """Reformats the dataframe to handle categorization data""" for model in class_dict: if len(class_dict[model]) > 1: - df = df.append([df.loc[model]]*(len(class_dict[model])-1)) + df = pd.concat([df, pd.DataFrame([df.loc[model]]*(len(class_dict[model])-1))]) # Assigns a unique identifier to each entry to index the dataframe without duplicates count = Counter(df.index.values)