Skip to content

Commit 3e4925d

Browse files
committed
Changed test to use strings
1 parent 726d147 commit 3e4925d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/tests/plotting/test_groupby.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,8 @@ def test_groupby_hist_series_with_legend(self, label, expected_label):
101101
# Histogram can have a legend
102102
index = Index(15 * [1] + 15 * [2], name="c")
103103
df = DataFrame(np.random.randn(30, 2), index=index, columns=["a", "b"])
104+
# older version of matplotlib fails if labels are not strings
105+
df = df.astype(str)
104106
g = df.groupby("c")
105107

106108
kwargs = {"legend": True}

0 commit comments

Comments
 (0)