bhavitvyamalik opened a new issue #9462: URL: https://github.com/apache/arrow/issues/9462
Hi, I came to know that pyarrow has this limitation of not storing nD arrays. After looking into this issue, I decided to represent a nD array as a list of arrays i.e. ``` data = np.zeros((5, 3), dtype=np.uint8) data = list(data) ``` inorder to preserve the dtype but when it comes to typecasting and writing it into array (from list) `pyarrow.array(data, type=type)` it gives the following error: `pyarrow.lib.ArrowInvalid: Could not convert [0 0 0] with type numpy.ndarray: tried to convert to int` Is there any way to avoid this issue? I just want to preserve the dtype from numpy array before converting it to list so that while writing it to pyarrow array format I can recognise its dtype and subsequently write it in that numpy dtype format. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
