From fa0305d4f16572820802c287d576f326c0aad7f5 Mon Sep 17 00:00:00 2001 From: Marco Gorelli <33491632+MarcoGorelli@users.noreply.github.com> Date: Mon, 25 Nov 2024 14:48:24 +0000 Subject: [PATCH] test: Pass native dataframe to `px.histogram` in `test_pass_df_columns` --- .../python/plotly/plotly/tests/test_optional/test_px/test_px.py | 2 +- .../plotly/plotly/tests/test_optional/test_px/test_px_input.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py b/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py index 5ae751f6663..157cb1fd2a1 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_px/test_px.py @@ -293,7 +293,7 @@ def test_category_order_with_category_as_x(backend): # https://github.com/plotly/plotly.py/issues/4875 tips = nw.from_native(px.data.tips(return_type=backend)) fig = px.bar( - tips, + tips.to_native(), x="day", y="total_bill", color="smoker", diff --git a/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py b/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py index 81605b59a29..dff76b4863e 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py @@ -464,7 +464,7 @@ def test_arguments_not_modified(backend): def test_pass_df_columns(backend): tips = nw.from_native(px.data.tips(return_type=backend)) fig = px.histogram( - tips, + tips.to_native(), x="total_bill", y="tip", color="sex",