Skip to content

Commit

Permalink
benhcmark: Fixed ordering of columns
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethEnevoldsen committed Nov 18, 2023
1 parent 621377b commit ba64303
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/run_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,9 @@ def convert_to_table(

# ensure that the average and open source are the first column
cols = df.columns.tolist()
cols = cols[-2:] + cols[:-2]
df = df[cols]
first_columns = ["Average", "Open Source"]
other_cols = sorted(c for c in cols if c not in first_columns)
df = df[first_columns + other_cols]

# convert name to column
df = df.reset_index()
Expand Down

0 comments on commit ba64303

Please sign in to comment.