Skip to content

Commit

Permalink
Add indexes to df grouping to preserve integer ordering.
Browse files Browse the repository at this point in the history
  • Loading branch information
alserene committed Nov 2, 2023
1 parent 850a35b commit eb5f2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schedview/compute/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,6 +399,8 @@ def make_survey_row(survey_bfs):
survey_row = pd.Series({"reward": reward, "infeasible": infeasible})
return survey_row

survey_df = summary_df.groupby(["tier", "survey_name_with_id", "survey_url"]).apply(make_survey_row)
survey_df = summary_df.groupby(
["list_index", "survey_index", "survey_name_with_id", "survey_url", "tier"]
).apply(make_survey_row)

return survey_df["reward"].reset_index()

0 comments on commit eb5f2fd

Please sign in to comment.