Skip to content

Commit c640a61

Browse files
committed
update script
1 parent 2028483 commit c640a61

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ds116/code/clean_events.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
print(df)
1515
# # remove rows with NaN in the "onset" column
1616
df = df.dropna(subset=["onset"])
17-
# save replacing NaN with "n/a"
18-
df.to_csv(event, sep="\t", na_rep="n/a", index=False)
17+
# save replacing NaN with "n/a" and with 3 decimal places
18+
df.to_csv(event, sep="\t", na_rep="n/a", float_format="%.3f", index=False)

0 commit comments

Comments
 (0)