Antoine Pitrou created ARROW-2285:
-------------------------------------
Summary: [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
{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)