Skip to content

Commit

Permalink
Merge pull request #251 from hunglin59638/issue-248
Browse files Browse the repository at this point in the history
bugfix: df.append is deprecated, replace with pd.concat #248
  • Loading branch information
raphenya authored Oct 25, 2023
2 parents b8b51e6 + 1032aa2 commit 778b83d
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 778b83d

Please sign in to comment.