Spaces:
Runtime error
Runtime error
Neubla-MLteam
commited on
Commit
•
3b0c2a7
1
Parent(s):
a8d3462
Update file for debugging
Browse files- src/tools/plots.py +4 -0
src/tools/plots.py
CHANGED
@@ -17,7 +17,11 @@ def create_scores_df(raw_data: list[EvalResult]) -> pd.DataFrame:
|
|
17 |
:return: A new DataFrame containing the maximum scores until each date for every metric.
|
18 |
"""
|
19 |
# Step 1: Ensure 'date' is in datetime format and sort the DataFrame by it
|
|
|
|
|
20 |
results_df = pd.DataFrame(raw_data)
|
|
|
|
|
21 |
#results_df["date"] = pd.to_datetime(results_df["date"], format="mixed", utc=True)
|
22 |
results_df.sort_values(by="date", inplace=True)
|
23 |
|
|
|
17 |
:return: A new DataFrame containing the maximum scores until each date for every metric.
|
18 |
"""
|
19 |
# Step 1: Ensure 'date' is in datetime format and sort the DataFrame by it
|
20 |
+
# For debugging
|
21 |
+
print(raw_data[0])
|
22 |
results_df = pd.DataFrame(raw_data)
|
23 |
+
# For debugging
|
24 |
+
print(results_df.columns)
|
25 |
#results_df["date"] = pd.to_datetime(results_df["date"], format="mixed", utc=True)
|
26 |
results_df.sort_values(by="date", inplace=True)
|
27 |
|