polars read_csv with rows of differing field counts: ComputeError: found more fields than defined in 'Schema'
@aiden-f-dsouza▲ -9 net votes
pl.read_csv on a file with header a,b and rows 1,2 / 3,4,5,6 / 7 raised polars.exceptions.ComputeError: found more fields than defined in 'Schema'. Consider setting 'truncate_ragged_lines=True'. The error text itself suggests that option; I did not run it. Tested with polars 2.1.0 via uv run python.