[ 
https://issues.apache.org/jira/browse/ARROW-9490?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Wes McKinney resolved ARROW-9490.
---------------------------------
    Resolution: Fixed

Issue resolved by pull request 8017
[https://github.com/apache/arrow/pull/8017]

> [Python] pyarrow array creation for specific set of numpy scalars fails
> -----------------------------------------------------------------------
>
>                 Key: ARROW-9490
>                 URL: https://issues.apache.org/jira/browse/ARROW-9490
>             Project: Apache Arrow
>          Issue Type: Bug
>          Components: Python
>    Affects Versions: 0.17.1
>         Environment: conda
>            Reporter: Ramakrishna Prabhu
>            Assignee: Andrew Wieteska
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.0.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> While creating array from a list of numpy scalars, pyarrow fails with message 
> 'Integer scalar type not recognized', details below 
> {code:java}
> >>> import pyarrow as pa >>> import numpy as np
> >>> pa.array([np.int32(4), np.float64(1.5), np.float32(1.290994), np.int8(0)])
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File "pyarrow/array.pxi", line 269, in pyarrow.lib.array
>   File "pyarrow/array.pxi", line 38, in pyarrow.lib._sequence_to_array
>   File "pyarrow/error.pxi", line 85, in pyarrow.lib.check_status
> pyarrow.lib.ArrowInvalid: Integer scalar type not recognized
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to