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

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   If you have data in a CSV file that is a quoted value with leading zeros, 
pyarrow will strip the leading zeros and convert the value to an integer. For 
example:
   
   ```python
   In [15]: with io.BytesIO(b'col1,col2\n"001","foo"\n"002","bar"') as buf:
       ...:     tbl = pa.csv.read_csv(buf, 
parse_options=pa.csv.ParseOptions(quote_char='"'))
       ...:     print(tbl)
   pyarrow.Table
   col1: int64
   col2: string
   ----
   col1: [[1,2]]
   col2: [["foo","bar"]]
   ```
   
   ### 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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to