Skip to content

Commit 4969af9

Browse files
authored
replace .append with pd.concat (#265)
1 parent cfacda2 commit 4969af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impedance/visualization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def plot_altair(data_dict, size=400, background='#FFFFFF'):
168168
df = pd.DataFrame({'f': f, 'z_real': Z.real, 'z_imag': Z.imag,
169169
'kind': kind, 'fmt': fmt})
170170

171-
Z_df = Z_df.append(df)
171+
Z_df = pd.concat([Z_df, df], ignore_index=True)
172172

173173
range_x = max(Z_df['z_real']) - min(Z_df['z_real'])
174174
range_y = max(-Z_df['z_imag']) - min(-Z_df['z_imag'])

0 commit comments

Comments
 (0)