You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "jorisvandenbossche (via GitHub)" <gi...@apache.org> on 2023/05/24 06:15:27 UTC

[GitHub] [arrow] jorisvandenbossche commented on issue #35732: [C++] Support fancy index for arrow array

jorisvandenbossche commented on issue #35732:
URL: https://github.com/apache/arrow/issues/35732#issuecomment-1560514094

   I think you are looking for `take` instead of `slice`:
   
   ```
   >>> arrow_arr1.take(arr2)
   <pyarrow.lib.StringArray object at 0x7f41b76c6e60>
   [
     "b",
     "c"
   ]
   ```


-- 
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: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org