-
Couldn't load subscription status.
- Fork 3.9k
Description
As noted in pandas-dev/pandas#42597, pyarrow.compute.min_max on a string dtype array currently raises. Here's an example from Python
{{
In [1]: import pyarrow, pyarrow.compute
In [2]: a = pyarrow.array(['c', 'a', 'b'])
In [4]: pyarrow.compute.min_max(a)
ArrowNotImplementedError Traceback (most recent call last)
in
----> 1 pyarrow.compute.min_max(a)
~/miniconda3/envs/pandas=1.3.0/lib/python3.9/site-packages/pyarrow/compute.py in min_max(array, options, memory_pool, **kwargs)
~/miniconda3/envs/pandas=1.3.0/lib/python3.9/site-packages/pyarrow/_compute.pyx in pyarrow._compute.Function.call()
~/miniconda3/envs/pandas=1.3.0/lib/python3.9/site-packages/pyarrow/error.pxi in pyarrow.lib.pyarrow_internal_check_status()
~/miniconda3/envs/pandas=1.3.0/lib/python3.9/site-packages/pyarrow/error.pxi in pyarrow.lib.check_status()
ArrowNotImplementedError: Function min_max has no kernel matching input types (array[string])
}}
Reporter: Tom Augspurger / @TomAugspurger
Related issues:
- [C++] Add compute function min_max support for more types (is a child of)
- [C++] String algorithm library for StringArray/BinaryArray (is a child of)
- [C++] Add compute function min_max support for more types (is superceded by)
Note: This issue was originally created as ARROW-13410. Please see the migration documentation for further details.