agramfort opened a new issue, #47562:
URL: https://github.com/apache/arrow/issues/47562
### Describe the bug, including details regarding any error messages,
version, and platform.
I have a test case that fails only on Win32 build (works on Linux / Mac).
Code that fails:
```python
table = pa.Table.from_pydict(
{
"A": [1, 3, 1],
"B": [2, 4, 2],
}
)
prefix = "col_"
expected = pa.Table.from_pydict(
{
f"{prefix}A": [1, 3, 1],
f"{prefix}B": [2, 4, 2],
}
)
# OK when passing a list to rename_columns
self.assertEqual(
table.rename_columns([f"{prefix}{k}" for k in table.column_names]),
expected
)
# KO when passing a dict to rename_columns (only in Windows)
self.assertEqual(
table.rename_columns({k: f"{prefix}{k}" for k in table.column_names}),
expected,
)
```
pyarrow version used is: 18.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]