From 8e68a1f567d2781bef0a1cfaf1312aa4820b29e3 Mon Sep 17 00:00:00 2001 From: "Penuel, John (US) - SAS" Date: Tue, 10 Dec 2024 16:53:29 -0500 Subject: [PATCH] fixed `.to_csv()` args so indexing is not present. --- scripts/compute_all_performance_metrics_script.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/compute_all_performance_metrics_script.py b/scripts/compute_all_performance_metrics_script.py index f60632d..cdad6a5 100755 --- a/scripts/compute_all_performance_metrics_script.py +++ b/scripts/compute_all_performance_metrics_script.py @@ -345,7 +345,7 @@ def main(args): # ============================================================== timestamp = datetime.datetime.now().strftime("%Y-%m-%d-%H-%M") aggregated_labels_file_name = f"aggregated_solver_labels_{timestamp}.csv" - aggregated_results.to_csv(aggregated_labels_file_name) + aggregated_results.to_csv(aggregated_labels_file_name, index=False) logging.info(f"wrote interim output to {aggregated_labels_file_name}") logging.info(f"=============================================") @@ -367,7 +367,7 @@ def main(args): # write out the labels to a .csv file... one file for each solver. solver_labels_file_name = f"solver_labels.{solver_short_name}.{solver_uuid}.csv" - solver_labels.to_csv(solver_labels_file_name) + solver_labels.to_csv(solver_labels_file_name, index=False) try: