You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@arrow.apache.org by "Uwe L. Korn (JIRA)" <ji...@apache.org> on 2018/04/18 08:03:00 UTC

[jira] [Updated] (ARROW-2285) [Python] Can't convert Numpy string arrays

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

Uwe L. Korn updated ARROW-2285:
-------------------------------
    Fix Version/s: 0.11.0

> [Python] Can't convert Numpy string arrays
> ------------------------------------------
>
>                 Key: ARROW-2285
>                 URL: https://issues.apache.org/jira/browse/ARROW-2285
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>    Affects Versions: 0.8.0
>            Reporter: Antoine Pitrou
>            Priority: Major
>             Fix For: 0.11.0
>
>
> {code:python}
> >>> arr = np.array([b'foo', b'bar'], dtype='S3')
> >>> pa.array(arr, type=pa.binary(3))
> Traceback (most recent call last):
>   File "<ipython-input-40-d52a5aa3b94e>", line 1, in <module>
>     pa.array(arr, type=pa.binary(3))
>   File "array.pxi", line 177, in pyarrow.lib.array
>   File "array.pxi", line 77, in pyarrow.lib._ndarray_to_array
>   File "error.pxi", line 85, in pyarrow.lib.check_status
> ArrowNotImplementedError: /home/antoine/arrow/cpp/src/arrow/python/numpy_to_arrow.cc:1661 code: converter.Convert()
> NumPyConverter doesn't implement <fixed_size_binary[3]> conversion. 
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)