-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to check column order when comparing polars dataframes #3206
Conversation
Right, I now see the keyword in that function. Can we rename that to |
I think
df1 = pl.DataFrame({"a": [1, 2], "b": [3, 4]})
df2 = pl.DataFrame({"b": [1, 2], "a": [3, 4]}) This is not the case that I'm hoping to cover with this keyword argument. |
FWIW, the equivalent pandas argument is named |
To me it implies that the column names must be correct and in the same order. The other name confused me, because how can we check if the combination of columns is correct. It does not make much sense to me. |
Changed to |
Thanks @physinet |
This adds
check_column_order
as a keyword argument topl.testing.assert_frame_equal
to allow comparison ofDataFrame
s with columns in an arbitrary order.