Skip to content
Snippets Groups Projects
Commit d07005f3 authored by Maël Madon's avatar Maël Madon
Browse files

fix bad order in sort and set_index

parent a8db6c86
Branches
Tags
No related merge requests found
...@@ -21,9 +21,8 @@ def clean_and_select(df): ...@@ -21,9 +21,8 @@ def clean_and_select(df):
select.job_id = select.job_id.astype(str) 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"].str.split(':', expand=True)[0]
select.job_id = select.job_id.astype(int) 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): def open_and_compare(file1, file2):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment