From d07005f377fde7be23262ade78d058a067a980c3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ma=C3=ABl=20Madon?= <mael.madon@irit.fr>
Date: Wed, 16 Nov 2022 14:38:13 +0100
Subject: [PATCH] fix bad order in sort and set_index

---
 distance_batsim_output.py | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/distance_batsim_output.py b/distance_batsim_output.py
index 3f32433..b8938a8 100755
--- a/distance_batsim_output.py
+++ b/distance_batsim_output.py
@@ -21,9 +21,8 @@ def clean_and_select(df):
     select.job_id = select.job_id.astype(str)
     select["job_id"] = select["job_id"].str.split(':', expand=True)[0]
     select.job_id = select.job_id.astype(int)
-    select.sort_values(by="job_id")
 
-    return select.set_index("job_id")
+    return select.sort_values(by="job_id").set_index("job_id")
 
 
 def open_and_compare(file1, file2):
-- 
GitLab