js8544 commented on issue #37008:
URL: https://github.com/apache/arrow/issues/37008#issuecomment-1669783431

   You can use 
[Table.slice](https://arrow.apache.org/docs/python/generated/pyarrow.Table.html#pyarrow.Table.slice)
 if you don't care about the extra memory usage. Slice is zero-copy: it only 
mark the offset of the buffers, so it's fast, but the poped rows still exist in 
memory.
   If you do care about memory usage, `take` is the best option AFAIU, because 
it is optimized to merely a bunch of `memcpy`s when you are taking contiguous 
indices. 


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to