Skip to content

Commit ed074d0

Browse files
committed
add test + update pandas version
1 parent 7cc56c2 commit ed074d0

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

Diff for: packages/python/plotly/plotly/tests/test_optional/test_px/test_px_input.py

+14
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from plotly.express._core import build_dataframe
99
from pandas.testing import assert_frame_equal
1010
import sys
11+
import warnings
1112

1213

1314
# Fixtures
@@ -667,3 +668,16 @@ def test_x_or_y(fn):
667668
assert list(fig.data[0].x) == constant
668669
assert list(fig.data[0].y) == categorical
669670
assert fig.data[0].orientation == "h"
671+
672+
673+
def test_no_futurewarning():
674+
with warnings.catch_warnings(record=True) as warn_list:
675+
_ = px.scatter(
676+
x=[15, 20, 29],
677+
y=[10, 20, 30],
678+
color=["Category 1", "Category 2", "Category 1"],
679+
)
680+
future_warnings = [
681+
warn for warn in warn_list if issubclass(warn.category, FutureWarning)
682+
]
683+
assert len(future_warnings) == 0, "FutureWarning(s) raised!"

Diff for: packages/python/plotly/test_requirements/requirements_39_pandas_2_optional.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
requests==2.25.1
22
tenacity==6.2.0
3-
pandas==2.0.2
4-
numpy==1.21.6
3+
pandas==2.2.0
4+
numpy==1.22.4
55
xarray==0.17.0
66
statsmodels
77
Pillow==8.2.0

0 commit comments

Comments
 (0)