ParthivNaresh opened a new issue, #34070:
URL: https://github.com/apache/arrow/issues/34070
### Describe the bug, including details regarding any error messages,
version, and platform.
```python
import pandas as pd
series = pd.Series(["red", "yellow", "red", "green", pd.NA],
dtype="string[pyarrow]")
series.mode()
=======================================
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File ".../pandas/core/series.py", line 2072, in mode
res_values = values._mode(dropna=dropna)
File ".../pandas/core/arrays/arrow/array.py", line 1311, in _mode
modes = pc.mode(data, pc.count_distinct(data).as_py())
File ".../pyarrow/compute.py", line 255, in wrapper
return func.call(args, options, memory_pool)
File "pyarrow/_compute.pyx", line 355, in pyarrow._compute.Function.call
File "pyarrow/error.pxi", line 144, in
pyarrow.lib.pyarrow_internal_check_status
File "pyarrow/error.pxi", line 121, in pyarrow.lib.check_status
pyarrow.lib.ArrowNotImplementedError: Function 'mode' has no kernel matching
input types (string)
```
Using the `string[pyarrow]` dtype prevents the usage of `mode()`.
pandas : 2.0.0.dev0+1430.gb2a26ecc5
numpy : 1.23.4
pyarrow : 9.0.0
### Component(s)
Python
--
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]