albertvillanova HF staff commited on
Commit
6411b1c
1 Parent(s): 1d3349d

Align Details samples sorting by doc_id

Browse files
Files changed (1) hide show
  1. src/details.py +1 -0
src/details.py CHANGED
@@ -55,6 +55,7 @@ async def load_details_dataframe(model_id, subtask):
55
  path = max(paths)
56
  data = await load_details_file(path)
57
  df = pd.json_normalize(data)
 
58
  # df = df.rename_axis("Parameters", axis="columns")
59
  df["model_name"] = model_id # Keep model_name
60
  return df
 
55
  path = max(paths)
56
  data = await load_details_file(path)
57
  df = pd.json_normalize(data)
58
+ df = df.sort_values(by=["doc_id"])
59
  # df = df.rename_axis("Parameters", axis="columns")
60
  df["model_name"] = model_id # Keep model_name
61
  return df