[ 
https://issues.apache.org/jira/browse/ARROW-13883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17414244#comment-17414244
 ] 

Joris Van den Bossche commented on ARROW-13883:
-----------------------------------------------

See also ARROW-7071 for a discussion about how to expose setting a validity 
bitmap to an existing array, which can be used for similar purposes as 
{{pa.array(..., mask=..}} if you have a mask as pyarrow array (there are 
differences though)

> [Python] Allow usage of Arrow arrays as masks of other arrays
> -------------------------------------------------------------
>
>                 Key: ARROW-13883
>                 URL: https://issues.apache.org/jira/browse/ARROW-13883
>             Project: Apache Arrow
>          Issue Type: Improvement
>          Components: Python
>    Affects Versions: 5.0.0
>            Reporter: Alessandro Molina
>            Assignee: Alessandro Molina
>            Priority: Major
>
> At the moment we only allow using {{numpy}} arrays for masks when building 
> new arrays. It would be helpful to allow using a {{pyarrow.Array}} too so 
> that the user has more flexibility and we can avoid involving {{numpy}} in 
> documentation examples for the sole purpose of creating masks.



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

Reply via email to