Skip to content
This repository has been archived by the owner on Oct 1, 2023. It is now read-only.

Commit

Permalink
Clean up Python script
Browse files Browse the repository at this point in the history
  • Loading branch information
KangarooKoala committed Sep 23, 2023
1 parent f39f09e commit 987fd80
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/time_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@
unit_columns = columns[3:]

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]]
for test in raw_data.keys():
if "-" not in test:
continue
formatted_entry = [[pt[0], test, *pt[1:]] for pt in raw_data[test]]
prepared_data = pd.concat(
[prepared_data, pd.DataFrame(formatted_entry, columns=columns)]
)
Expand Down

0 comments on commit 987fd80

Please sign in to comment.