Skip to content

Commit 5c3e7d3

Browse files
committed
ENH: Use a boolean to tell whether to serialize the pandas df index
Use a boolean to tell whether to serialize the pandas dataframe index. Fixes: ``` scripts/dwi_gp_estimation_error_analysis.py:220: error: No overload variant of "to_csv" of "NDFrame" matches argument types "Any", "str", "None", "str" [call-overload] scripts/dwi_gp_estimation_error_analysis.py:220: note: Possible overload variants: scripts/dwi_gp_estimation_error_analysis.py:220: note: def (...) ``` raised for example in: https://github.com/nipreps/nifreeze/actions/runs/12437972140/job/34728973936#step:8:121
1 parent 97d9edf commit 5c3e7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/dwi_gp_estimation_error_analysis.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def main() -> None:
217217
print(f"Finished {n}-fold cross-validation")
218218

219219
scores_df = pd.DataFrame(scores)
220-
scores_df.to_csv(args.output_scores, sep="\t", index=None, na_rep="n/a")
220+
scores_df.to_csv(args.output_scores, sep="\t", index=False, na_rep="n/a")
221221

222222
grouped = scores_df.groupby(["n_folds"])
223223
print(grouped[["rmse"]].mean())

0 commit comments

Comments
 (0)