Skip to content

Commit 498c4ab

Browse files
committed
🐛 Coerce float strings to float before coercing to ints
1 parent 7242e79 commit 498c4ab

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mindlogger_data_export/outputs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,7 @@ def _prepare_activity_columns(
504504
pl.col(original_response_col)
505505
.cast(pl.Utf8)
506506
.str.extract(r"^(\d+)", 1)
507+
.cast(pl.Float64)
507508
.cast(pl.Int64)
508509
)
509510
.otherwise(pl.col(col) + 1)

0 commit comments

Comments
 (0)