Skip to content

Commit

Permalink
bugfix: df.append is deprecated, replace with pd.concat #248
Browse files Browse the repository at this point in the history
  • Loading branch information
hunglin59638 committed Oct 24, 2023
1 parent 1d850e3 commit 1032aa2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1032aa2

Please sign in to comment.