benibus commented on PR #36575:
URL: https://github.com/apache/arrow/pull/36575#issuecomment-1627778208
@pitrou I haven't added any python tests (although I can if necessary) - but
the original examples should be working now as well.
```python
>>> pa.compute.utf8_slice_codeunits(f"AB{chr(127917)}C{chr(127917)}ㇱD",
start=2, stop=None, step=4)
<pyarrow.StringScalar: '🎭D'>
```
```python
>>> s = f"AB{chr(127917)}C{chr(127917)}ㇱD"
>>> a = pa.array([s])
>>> pc.utf8_slice_codeunits(a, start=0, stop=None)
<pyarrow.lib.StringArray object at 0x7f0fa4bb85e0>
[
"AB🎭C🎭ㇱD"
]
```
--
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]