Skip to content

test: Pass native dataframe in test_pass_df_columns and test_category_order_with_category_as_x #4902

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

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

MarcoGorelli
Copy link
Contributor

It looks like in this test a Narwhals DataFrame is being passed to px.histogram - however, a user would pass in their native frame, not a Narwhals one, so I think the test should be testing when tips.to_native() is passed, not when tips is passed. At least, that's what all the other tests do - I presume this was an accident? I might be missing something though

cc @FBruzzesi

@MarcoGorelli MarcoGorelli changed the title test: Pass native dataframe to px.histogram in test_pass_df_columns test: Pass native dataframe in test_pass_df_columns and test_category_order_with_category_as_x Nov 25, 2024
@MarcoGorelli MarcoGorelli marked this pull request as ready for review November 25, 2024 15:04
@FBruzzesi
Copy link
Contributor

Most likely my bad, nice catch @MarcoGorelli

@gvwilson gvwilson added community community contribution fix fixes something broken labels Nov 26, 2024
Copy link
Collaborator

@marthacryan marthacryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@marthacryan marthacryan merged commit 4b743f6 into plotly:master Nov 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community community contribution fix fixes something broken
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants