lmocsi opened a new issue, #37955:
URL: https://github.com/apache/arrow/issues/37955
### Describe the enhancement requested
It would be nice to have instead of chained replace_all's:
```
df =
(df.with_columns(pl.col('field1').str.replace_all('aa','1').str.replace_all('bb','2'),
pl.col('field2').str.replace_all('aa','1').str.replace_all('bb','2')
)
```
using a dict, something like:
```
conv = {'aa': '1','bb': '2'}
df = (df.with_columns(pl.col('field1').str.replace_all(conv),
pl.col('field2').str.replace_all(conv)
)
```
### 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]