We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2028483 commit c640a61Copy full SHA for c640a61
ds116/code/clean_events.py
@@ -14,5 +14,5 @@
14
print(df)
15
# # remove rows with NaN in the "onset" column
16
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)
+ # save replacing NaN with "n/a" and with 3 decimal places
+ df.to_csv(event, sep="\t", na_rep="n/a", float_format="%.3f", index=False)
0 commit comments