WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@oktie
Copy link
Member

@oktie oktie commented Dec 2, 2025

This PR fixes an error under Python 3.12+ for when dataframes have duplicate column names (more likely when there are joins in the SQLs).

Replaces label-based column selection in sort_df with positional selection via iloc. This prevents cases where df[col] resolves to a DataFrame (Python 3.12 / duplicate columns), which caused sort_values to raise a missing by argument error.

Thanks to @tkaple for the fix.

Signed-off-by: Oktie Hassanzadeh <[email protected]>
@oktie oktie requested review from elronbandel and perlitz December 2, 2025 23:19
@oktie oktie added the bug Something isn't working label Dec 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants