Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Use np.isin instead of np.in1d to fix numpy 2.4 test compatibility
  • Loading branch information
thunze committed Feb 23, 2026
commit ce04f5e079a7a6b831ea1eec7ea240333e77a0d4
2 changes: 1 addition & 1 deletion tests/test_optional/test_px/test_px.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def test_custom_data_scatter(backend):
)
for data in fig.data:
assert np.all(
np.in1d(data.customdata[:, 1], iris.get_column("petal_width").to_numpy())
np.isin(data.customdata[:, 1], iris.get_column("petal_width").to_numpy())
)
# Hover and custom data, no repeated arguments
fig = px.scatter(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_optional/test_px/test_px_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def test_sunburst_treemap_with_path_color(constructor):
fig = px.sunburst(
df.to_native(), path=path, color="sectors", color_discrete_map=cmap
)
assert np.all(np.in1d(fig.data[0].marker.colors, list(cmap.values())))
assert np.all(np.isin(fig.data[0].marker.colors, list(cmap.values())))

# Numerical column in path
df = (
Expand Down