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

Anish Biswas closed ARROW-8642.
-------------------------------
    Resolution: Fixed

> Is there a good way to convert data types from numpy types to pyarrow 
> DataType?
> -------------------------------------------------------------------------------
>
>                 Key: ARROW-8642
>                 URL: https://issues.apache.org/jira/browse/ARROW-8642
>             Project: Apache Arrow
>          Issue Type: Wish
>            Reporter: Anish Biswas
>            Priority: Major
>
> Pretty much what the title says. Suppose I have a numpy array and its a 
> numpy.int8 type. How do I convert it to a pyarrow.Datatype intuitively? I 
> thought a Dictionary lookup table might work but perhaps there is some better 
> way?
> Why do I need this? I am trying to make pyarrow arrays with from_buffers(). 
> The first parameter is essentially a pyarrow.Datatype. So that's why. I have 
> validity_bitmaps as a buffer of uint8 and that's why I am using 
> from_buffers() and not pyarrow.array().



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

Reply via email to