rkarthik29 opened a new issue, #39287:
URL: https://github.com/apache/arrow/issues/39287

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   we are trying to parse a CSV file that has a cedilla \x03 delimiter. When 
passing this to pyarrow.csv.read_csv, the parse complains that the delimiter 
\x03 is not a valid ascii. Is there a way around this issue ?
   
   ile 
~/miniconda3/envs/sandbox/lib/python3.11/site-packages/pyarrow/_csv.pyx:422, in 
pyarrow._csv.ParseOptions.__init__()
   
   File 
~/miniconda3/envs/sandbox/lib/python3.11/site-packages/pyarrow/_csv.pyx:445, in 
pyarrow._csv.ParseOptions.delimiter.__set__()
   
   File 
~/miniconda3/envs/sandbox/lib/python3.11/site-packages/pyarrow/_csv.pyx:46, in 
pyarrow._csv._single_char()
   
   ValueError: Expecting an ASCII character
   
   i  get the above error if i use the character as delim "Ç"
   
   but if i use \x03 , the data is read, but it is not parsed into columns.
   
   i also tried "Ç".encode(ascii) and i get an error that the ascii code \xc7 
is not valid. I tried chr(199). Nothing worked. Could anybody guide me in the 
right direction here. Dont want to use pandas 
   
   ### Component(s)
   
   Python


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to