rachtsingh opened a new issue, #34353:
URL: https://github.com/apache/arrow/issues/34353
### Describe the enhancement requested
Please consider adding (vectorized) support for adding strings to strings:
```python
In [1]: df = pd.DataFrame({'a': ['b'], 'c': ['d']}).astype(dtype={'a':
'string[pyarrow]', 'c': 'string[pyarrow]'})
In [2]: df.a + df.c
---------------------------------------------------------------------------
ArrowNotImplementedError Traceback (most recent call last)
Input In [2], in <cell line: 1>()
----> 1 df.a + df.c
...
File
~/.pyenv/versions/3.10.4/envs/prod/lib/python3.10/site-packages/pyarrow/compute.py:239,
in _make_generic_wrapper.<locals>.wrapper(memory_pool, *args)
237 if args and isinstance(args[0], Expression):
238 return Expression._call(func_name, list(args))
--> 239 return func.call(args, None, memory_pool)
File
~/.pyenv/versions/3.10.4/envs/prod/lib/python3.10/site-packages/pyarrow/_compute.pyx:355,
in pyarrow._compute.Function.call()
File
~/.pyenv/versions/3.10.4/envs/prod/lib/python3.10/site-packages/pyarrow/error.pxi:144,
in pyarrow.lib.pyarrow_internal_check_status()
File
~/.pyenv/versions/3.10.4/envs/prod/lib/python3.10/site-packages/pyarrow/error.pxi:121,
in pyarrow.lib.check_status()
ArrowNotImplementedError: Function 'add_checked' has no kernel matching
input types (string, string)
...
```
There's support for this in Panda's normal `pd.StringDtype` (aka dtype =
`string`), but not with Arrow storage format. We'd also appreciate support for
adding constant strings as prefixes or suffixes, if that's not already
automatic with implementation of the kernel.
I can take a look at implementing this if someone points me to the right
file (it is a little hard for me to understand how to set up a development
environment for Pandas+Arrow).
### 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]