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)