xbarra commented on issue #35717:
URL: https://github.com/apache/arrow/issues/35717#issuecomment-1697128121

   In pyarrow 13 we have the same issue. And (the case most interesting to us), 
we have problems with Infinity
   
   ```
   pa.array([Decimal(2),Decimal('inf'),3])
   
   ---------------------------------------------------------------------------
   TypeError                                 Traceback (most recent call last)
   Cell In[23], line 1
   ----> 1 pa.array([Decimal(2),Decimal('inf'),3])
   
   File 
[c:\ProgramData\Anaconda3\Lib\site-packages\pyarrow\array.pxi:327](file:///C:/ProgramData/Anaconda3/Lib/site-packages/pyarrow/array.pxi:327),
 in pyarrow.lib.array()
   
   File 
[c:\ProgramData\Anaconda3\Lib\site-packages\pyarrow\array.pxi:39](file:///C:/ProgramData/Anaconda3/Lib/site-packages/pyarrow/array.pxi:39),
 in pyarrow.lib._sequence_to_array()
   
   File 
[c:\ProgramData\Anaconda3\Lib\site-packages\pyarrow\error.pxi:144](file:///C:/ProgramData/Anaconda3/Lib/site-packages/pyarrow/error.pxi:144),
 in pyarrow.lib.pyarrow_internal_check_status()
   
   TypeError: 'str' object cannot be interpreted as an integer
   ```
   
   The same happens with 
`pa.array([Decimal(2),Decimal('inf'),3],from_pandas=True)` 


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