pitrou commented on code in PR #44447:
URL: https://github.com/apache/arrow/pull/44447#discussion_r1804974475
##########
python/pyarrow/array.pxi:
##########
@@ -538,6 +538,51 @@ def repeat(value, size, MemoryPool memory_pool=None):
return pyarrow_wrap_array(c_array)
+def mask(indices, length, MemoryPool memory_pool=None):
+ """
+ Create a boolean Array instance where specific indices are marked as True.
+
+ Parameters
+ ----------
+ indices : list[int]
Review Comment:
It would be nice if `indices` could also be passed as a Arrow array... This
means that perhaps the C++ mask function should be a compute kernel?
--
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]