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

   I have a csv file with datetime formatted as "%d/%m/%Y %I:%M %p". I can 
convert them to pandas datetime but when I use pyarrow's strptime I get the 
following error.
   `ArrowInvalid: Failed to parse string: '9/03/2043 12:35 AM' as a scalar of 
type timestamp[s]`
   
   Code to reproduce:
   ```
   import pandas as pd
   import pyarrow.compute as pc
   
   # pd.__version__ == '1.3.4'
   # pyarrow.__version__ == '8.0.0'
   
   _ts = ["9/03/2043 12:35 AM"]
   _format = "%d/%m/%Y %I:%M %p"
   
   pd.to_datetime(_ts, format=_format)
   pc.strptime(_ts, format= _format, unit='s')
   ```


-- 
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