Skip to content

Commit 2b8373b

Browse files
committed
CLN: Clean up test_bar_numeric
1 parent 6aa9984 commit 2b8373b

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
@@ -3282,11 +3282,11 @@ def test_bar_numeric(self):
32823282
# Bar plot with numeric index have tick location values equal to index
32833283
# values
32843284
# GH: 11465
3285-
index = np.arange(10, 20, dtype=np.int64)
32863285
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
32873286
ax = df.plot.bar()
32883287
ticklocs = ax.xaxis.get_ticklocs()
3289-
tm.assert_numpy_array_equal(ticklocs, index)
3288+
expected = np.arange(10, 20, dtype=np.int64)
3289+
tm.assert_numpy_array_equal(ticklocs, expected)
32903290

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

0 commit comments

Comments
 (0)