Skip to content

Commit

Permalink
Fix pandas deprecation warning (wpilibsuite#378)
Browse files Browse the repository at this point in the history
  • Loading branch information
calcmogul authored Feb 21, 2022
1 parent 0c1af2f commit e29b79b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/time_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,9 @@
prepared_data = pd.DataFrame(columns=columns)
for test in (test for test in raw_data.keys() if "-" in test):
formatted_entry = [[pt[0]] + [test] + pt[1:] for pt in raw_data[test]]
prepared_data = prepared_data.append(
pd.DataFrame(formatted_entry, columns=columns))
prepared_data = pd.concat(
[prepared_data,
pd.DataFrame(formatted_entry, columns=columns)])

units_per_rot = raw_data["unitsPerRotation"]

Expand Down

0 comments on commit e29b79b

Please sign in to comment.