Skip to content

Commit

Permalink
replace .append with pd.concat (#265)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmurbach authored Jun 24, 2023
1 parent cfacda2 commit 4969af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impedance/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def plot_altair(data_dict, size=400, background='#FFFFFF'):
df = pd.DataFrame({'f': f, 'z_real': Z.real, 'z_imag': Z.imag,
'kind': kind, 'fmt': fmt})

Z_df = Z_df.append(df)
Z_df = pd.concat([Z_df, df], ignore_index=True)

range_x = max(Z_df['z_real']) - min(Z_df['z_real'])
range_y = max(-Z_df['z_imag']) - min(-Z_df['z_imag'])
Expand Down

0 comments on commit 4969af9

Please sign in to comment.