rchowell commented on issue #40580:
URL: https://github.com/apache/arrow/issues/40580#issuecomment-2669401903

   Hello 👋  are there any suggested workarounds here?
   
   ```python
   import numpy as np
   import pyarrow as pa
   
   data = [np.datetime64(datetime.now(), "D") for _ in range(10)]
   pa.array(data) # cannot create a pyarrow array
   ```
   
   ```text
   Traceback (most recent call last):
     File "/Users/rch/Projects/Punq/scripts/test_numpy_datetime64.py", line 16, 
in <module>
       pa.array(data)
     File "pyarrow/array.pxi", line 355, in pyarrow.lib.array
     File "pyarrow/array.pxi", line 42, in pyarrow.lib._sequence_to_array
     File "pyarrow/error.pxi", line 154, in 
pyarrow.lib.pyarrow_internal_check_status
     File "pyarrow/error.pxi", line 88, in pyarrow.lib.check_status
   TypeError: int() argument must be a string, a bytes-like object or a real 
number, not 'datetime.date' 
   ```


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