Skip to content

Commit 15a5ee3

Browse files
committed
CLN: Clean up test_bar_numeric
1 parent e06cf52 commit 15a5ee3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/plotting/test_frame.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -3276,11 +3276,11 @@ def test_bar_numeric(self):
32763276
# Bar plot with numeric index have tick location values equal to index
32773277
# values
32783278
# GH: 11465
3279-
index = np.arange(10, 20, dtype=np.int64)
32803279
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
32813280
ax = df.plot.bar()
32823281
ticklocs = ax.xaxis.get_ticklocs()
3283-
tm.assert_numpy_array_equal(ticklocs, index)
3282+
expected = np.arange(10, 20, dtype=np.int64)
3283+
tm.assert_numpy_array_equal(ticklocs, expected)
32843284

32853285
def test_bar_multiindex(self):
32863286
# Test from pandas/doc/source/user_guide/visualization.rst

0 commit comments

Comments
 (0)