Unexpected behaviour with pd.filter in pandas 2.1 #55195
Labels
Bug
Duplicate Report
Duplicate issue or pull request
Needs Info
Clarification about behavior needed to assess issue
Needs Triage
Issue that has not been reviewed by a pandas team member
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
I'm user of Padans, I found a issue, when I update to 2.1.
We have some dataframe with the following columns:
We want to filter for a subset of those columns:
However, in 2.1, the function returns the columns in the dataframe ordering:
Expected Behavior
In 1.5, the function would return the columns in the order we passed them in as:
Installed Versions
2.1
The text was updated successfully, but these errors were encountered: