We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ce0c55 commit 0da0941Copy full SHA for 0da0941
pandas/tests/plotting/frame/test_frame.py
@@ -804,8 +804,7 @@ def test_plot_scatter_without_norm(self):
804
ax = df.plot.scatter(x="a", y="b", c="c")
805
color_min_max = (df.c.min(), df.c.max())
806
default_norm = mpl.colors.Normalize(*color_min_max)
807
- for c in range(100):
808
- assert ax.collections[0].norm(c) == default_norm(c)
+ assert all(df.c.apply(lambda x: ax.collections[0].norm(x) == default_norm(x)))
809
810
def test_plot_bar(self):
811
df = DataFrame(
0 commit comments