amol- commented on code in PR #44447:
URL: https://github.com/apache/arrow/pull/44447#discussion_r1864680817
##########
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:
Added an overloaded version that accepts Array. The Python wrapper accepts
everything supported by `asarray`
--
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]