Skip to content

Commit

Permalink
[FIX] Use pandas concat instead of append (#540)
Browse files Browse the repository at this point in the history
  • Loading branch information
jgranley committed Apr 6, 2023
1 parent ed2a875 commit 4a3ea98
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pulse2percept/datasets/perezfornos2012.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@ def load_perezfornos2012(shuffle=False, subjects=None, figures=None,
for time_step in time_steps:
time_series = np.append(time_series, row[time_step])

raw_spec = {
raw_spec = pd.DataFrame([{
'figure': row['Figure'],
'subject': row['Subject'],
'time_series': time_series
}
time_series_df = time_series_df.append(raw_spec, verify_integrity=False,
ignore_index=True)
}])
time_series_df = pd.concat([time_series_df, raw_spec],
verify_integrity=False, ignore_index=True)

return time_series_df.reset_index(drop=True)

0 comments on commit 4a3ea98

Please sign in to comment.