You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by GitBox <gi...@apache.org> on 2021/05/10 07:17:41 UTC

[GitHub] [arrow] jorisvandenbossche commented on pull request #10272: ARROW-12677: [Python] Add a mask argument to pyarrow.StructArray.from_arrays

jorisvandenbossche commented on pull request #10272:
URL: https://github.com/apache/arrow/pull/10272#issuecomment-836283202


   If we add such a `mask` keyword, I would say that it should match the `mask` keyword of `pa.array(..)` (and thus being an inverted mask, and not the validity mask as used internally). 
   
   That means always some conversion of the data is needed (to invert the mask), and you cannot create a StructArray 100% cheaply from existing arrays with `from_arrays`, but for such a case you can still use `from_buffers` if you want.
   
   


-- 
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:
users@infra.apache.org