0x26res opened a new issue, #43588:
URL: https://github.com/apache/arrow/issues/43588
### Describe the bug, including details regarding any error messages,
version, and platform.
I've been using `pyarrow.Table.rename_columns` with `tuple` of `str`. This
means I can store the column names in global variables, and not worry about
someone mutating the list of names.
But since pyarrow 17.0.0 it stopped working:
```
import pyarrow as pa
pa.table(
{
"col1": [1, 2, 3],
"col2": [1, 2, 3],
}
).rename_columns(("col_1", "col_2"))
```
Raises:
```
TypeError: names must be a list or dict not <class 'tuple'>
```
I think this (welcomed) change introduced it
https://github.com/apache/arrow/pull/40645/files
I'm happy to send a fix for it.
### 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]