Incompatibility between pandas and rust #20366
Labels
bug
Something isn't working
needs repro
Bug does not yet have a reproducible example
needs triage
Awaiting prioritization by a maintainer
python
Related to Python Polars
Checks
Reproducible example
Log output
Issue description
File ~/miniconda3/envs/env/lib/python3.11/site-packages/polars/io/csv/functions.py:672, in _read_csv_impl(source, has_header, columns, separator, comment_prefix, quote_char, skip_rows, schema, schema_overrides, null_values, missing_utf8_is_empty_string, ignore_errors, try_parse_dates, n_threads, infer_schema_length, batch_size, n_rows, encoding, low_memory, rechunk, skip_rows_after_header, row_index_name, row_index_offset, sample_size, eol_char, raise_if_empty, truncate_ragged_lines, decimal_comma, glob)
668 raise ValueError(msg)
670 projection, columns = parse_columns_arg(columns)
--> 672 pydf = PyDataFrame.read_csv(
673 source,
674 infer_schema_length,
675 batch_size,
676 has_header,
677 ignore_errors,
678 n_rows,
679 skip_rows,
680 projection,
681 separator,
682 rechunk,
683 columns,
684 encoding,
685 n_threads,
686 path,
687 dtype_list,
688 dtype_slice,
689 low_memory,
690 comment_prefix,
691 quote_char,
692 processed_null_values,
693 missing_utf8_is_empty_string,
694 try_parse_dates,
695 skip_rows_after_header,
696 parse_row_index_args(row_index_name, row_index_offset),
697 eol_char=eol_char,
698 raise_if_empty=raise_if_empty,
699 truncate_ragged_lines=truncate_ragged_lines,
700 decimal_comma=decimal_comma,
701 schema=schema,
702 )
703 return wrap_df(pydf)
ComputeError: could not parse
A
as dtypei64
at column 'properties_local_ref' (column number 36)The current offset in the file is 7327452 bytes.
You might want to try:
infer_schema_length
(e.g.infer_schema_length=10000
),schema_overrides
argumentignore_errors
toTrue
,A
to thenull_values
list.Original error:
remaining bytes non-empty
Expected behavior
loading consistantly
Installed versions
The text was updated successfully, but these errors were encountered: