-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Description
scan_fwf fails to read example posted fixed width text file using the following code. Error raised, PanicException: Python API call failed. Seems that the first 'É' encountered is what is causing it.
Example test file:
https://github.com/user-attachments/files/21219300/test.txt
import polars as pl
import polars_io as pio
cols = {'seq': (0,9),
'id': (9,24),
'input_text': (24,144)
}
df = pio.scan_fwf(r"path\test.txt",
cols,
infer_schema_length=0,
encoding='cp1252',
has_header=False,
separator='\x00',
quote_char=None
)
df.head().collect()
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working