This is essentially a take index for nested structs for the struct field.

https://arrow.apache.org/docs/python/generated/pyarrow.compute.take.html

import pyarrow as pa

arr = pa.array(["a", "b", "c", None, "e", "f"])
indices = pa.array([0, None, 4, 3])

arr.take(indices)
<pyarrow.lib.StringArray object at ...>
[
  "a",
  null,
  "e",
  null
]
This message may contain information that is confidential or privileged. If you 
are not the intended recipient, please advise the sender immediately and delete 
this message. See 
https://www.blackrock.com/corporate/compliance/email-disclaimers for further 
information.  Please refer to 
https://www.blackrock.com/corporate/compliance/privacy-policy for more 
information about BlackRock’s Privacy Policy.
For a list of BlackRock's office addresses worldwide, see 
https://www.blackrock.com/corporate/about-us/contacts-locations.

© 2026 BlackRock, Inc. All rights reserved.

Reply via email to