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

   > 2\. Allow to specify the `occurence` keyword, given that this is not 
necessarily obvious, it's nice to be able to specify the named argument:
   
   Actually, that errors only because I mis-spelled the keyword name. With the 
correct name it works:
   
   ```
   >>> pc.map_lookup(arr, pa.scalar("a"), occurrence="all")
   <pyarrow.lib.ListArray object at 0x7f099c96bd00>
   [
     [
       "a1"
     ],
     [
       "a2"
     ],
     [
       "a1"
     ]
   ]
   ```
   
   Wondering if we can provide a better error message in that case, but that 
might just be a Python/cython behaviour of first checking the positional 
keywords before the named ones)


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