Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-15131

[Python] Coerce value_set argument to array in "is_in" kernel

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Python

    Description

      Small example I ran into:

      >>> arr = pa.array(['a', 'b', 'c', 'd'])
      >>> pc.is_in(arr, ['a', 'c'])
      ...
      TypeError: "['a', 'c']" is not a valid value set
      

      That's not a super friendly error message (it was not directly clear what is not "valid" about this). Passing pa.array(['a', 'c']) explicitly works, but I expected that the kernel would try this automatically (as we also convert the first array argument to an array).

      Attachments

        Activity

          People

            Unassigned Unassigned
            jorisvandenbossche Joris Van den Bossche
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: