Skip to content

Commit

Permalink
change the sorting for index of each group df.
Browse files Browse the repository at this point in the history
  • Loading branch information
hyunhwan-bcm committed Aug 1, 2024
1 parent d87fa98 commit 988ff34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/extraModel/integrate_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def process_recessive_matrix(df):

result = []
for _, var_grp in var_grps:
var_grp = var_grp.sort_index()
var_grp = var_grp.sort_values("var2", kind="stable")
var_grp = var_grp.sort_values("predict", ascending=False, kind="stable")
result.append(var_grp.iloc[[0], :])
result = pd.concat(result)
Expand Down

0 comments on commit 988ff34

Please sign in to comment.