Skip to content

Commit 0da0941

Browse files
committed
TST: reduce number of norm comparisons (pandas-dev#45809)
1 parent 9ce0c55 commit 0da0941

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pandas/tests/plotting/frame/test_frame.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,7 @@ def test_plot_scatter_without_norm(self):
804804
ax = df.plot.scatter(x="a", y="b", c="c")
805805
color_min_max = (df.c.min(), df.c.max())
806806
default_norm = mpl.colors.Normalize(*color_min_max)
807-
for c in range(100):
808-
assert ax.collections[0].norm(c) == default_norm(c)
807+
assert all(df.c.apply(lambda x: ax.collections[0].norm(x) == default_norm(x)))
809808

810809
def test_plot_bar(self):
811810
df = DataFrame(

0 commit comments

Comments
 (0)