1. 학습
  2. /
  3. 강의
  4. /
  5. Scaling and Optimizing Data Pipelines with Polars

Connected

연습 문제

Ignoring parse errors

A bad value, the literal text "unknown", has slipped into the checkouts column of the vendor export. Polars normally fails when it can't parse a value into the inferred dtype. Tell Polars to skip these errors so the team can still load the rest of the data.

A normal row and the row with the bad value are printed for you so you can see what's going on.

지침

100 XP
  • Add the argument that tells Polars to set bad values to null and continue scanning.