Skip to content

Commit

Permalink
pandas depreciated df.append
Browse files Browse the repository at this point in the history
  • Loading branch information
ghislainp committed Jun 20, 2023
1 parent 9209f60 commit 314322b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion smrt/core/snowpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def multi_index(index1, index2):
for args in self.substrate.optional_args:
substrate[('substrate', args)] = [getattr(self.substrate, args)]

df = df.append(pd.DataFrame(substrate, index=['s']), sort=False, verify_integrity=True)
df = pd.concat((df, pd.DataFrame(substrate, index=['s']))) # append
# reorder
df = df[list(columns.keys()) + list(substrate.keys())]

Expand Down

0 comments on commit 314322b

Please sign in to comment.