Skip to content

Commit c4d39cd

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/mindlogger_data_export/processors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _run(self, report: pl.DataFrame) -> pl.DataFrame:
146146
return report.with_columns(
147147
response=pl.struct(
148148
status=pl.col("item_response_status"),
149-
raw_score=pl.col("rawScore").cast(pl.Int64),
149+
raw_score=pl.col("rawScore").cast(pl.Float64).cast(pl.Int64),
150150
raw_response=pl.col("item_response"),
151151
value=pl.struct(
152152
item_type=pl.col("item").struct.field("type"),

0 commit comments

Comments
 (0)