You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
array1=pa.array([1,2,3,4])
array2=pa.array([1,4])
importpyarrow.computeaspc# Using positional for value_set as well (the signature indicates with * that this are keyword# only arguments, but the error message is still confusing compared to plain python>>>pc.is_in(array1, array2)
...
ArrowInvalid: Functionis_inaccepts1argumentsbutattemptedtolookupkernel(s) with2# Using keyword for the first argument (which is allowed in pure python functions)# gives confusing error message because it passes it to the options>>>pc.is_in(values=array1,value_set=array2)
...
~/scipy/repos/arrow/python/pyarrow/_compute.pyxinpyarrow._compute.SetLookupOptions.__init__()
TypeError: __init__() gotanunexpectedkeywordargument'values'
I think it should be quite easy to improve the error messaging on this front, since we know how many arguments the kernel takes.
From https://stackoverflow.com/questions/69990087/how-to-use-pyarrow-compute-is-in-function
Small example of the current error messages:
I think it should be quite easy to improve the error messaging on this front, since we know how many arguments the kernel takes.
cc @amol-
Reporter: Joris Van den Bossche / @jorisvandenbossche
Assignee: Joris Van den Bossche / @jorisvandenbossche
PRs and other links:
Note: This issue was originally created as ARROW-14732. Please see the migration documentation for further details.
The text was updated successfully, but these errors were encountered: