goldigd05 commented on issue #48679: URL: https://github.com/apache/arrow/issues/48679#issuecomment-3708374564
Hi, I would like to help with this issue. I can reproduce the column ordering bug in `pivot_wider` when swapping the `on` and `index` parameters. My initial idea for a fix is: 1. Ensure that the pivot keys are iterated in the same order as they appear in the original table. 2. Optionally, provide a `sort_keys=False` parameter so users can preserve natural key order. 3. Update unit tests to assert column ordering matches expectations (similar to Polars pivot output). I am happy to implement this in a PR once the approach is confirmed. -- 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]
