diff --git a/pandas/tests/test_graphics.py b/pandas/tests/test_graphics.py index 27ac43100a9ed..89cc407daf3f4 100644 --- a/pandas/tests/test_graphics.py +++ b/pandas/tests/test_graphics.py @@ -308,7 +308,7 @@ def test_unsorted_index(self): ax = df.plot() l = ax.get_lines()[0] rs = l.get_xydata() - rs = Series(rs[:, 1], rs[:, 0], dtype=int) + rs = Series(rs[:, 1], rs[:, 0], dtype=np.int64) tm.assert_series_equal(rs, df.y) def _check_data(self, xp, rs):