Skip to content

Commit

Permalink
Try passing in columns explicitly when writing csv
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonGross committed Oct 31, 2024
1 parent c914719 commit d1673af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebooks_jason/max_of_K_all_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -782,7 +782,7 @@ def update_csv_with_rows(
subset=subset, keep="last"
)
results = results.sort_values(subset)
results.to_csv(csv_path, index=False)
results.to_csv(csv_path, index=False, columns=columns)
if save_to_hf:
results.to_parquet(csv_to_hf_path(csv_path, ext="parquet"))
results.to_csv(csv_to_hf_path(csv_path, ext="csv"), index=False)
Expand Down

0 comments on commit d1673af

Please sign in to comment.