Skip to content

Commit 9418c6e

Browse files
committed
CLN: Clean up test_bar_numeric
1 parent f866c26 commit 9418c6e

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
@@ -3348,11 +3348,11 @@ def test_bar_numeric(self):
33483348
# Bar plot with numeric index have tick location values equal to index
33493349
# values
33503350
# GH: 11465
3351-
index = np.arange(10, 20, dtype=np.int64)
33523351
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
33533352
ax = df.plot.bar()
33543353
ticklocs = ax.xaxis.get_ticklocs()
3355-
tm.assert_numpy_array_equal(ticklocs, index)
3354+
expected = np.arange(10, 20, dtype=np.int64)
3355+
tm.assert_numpy_array_equal(ticklocs, expected)
33563356

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

0 commit comments

Comments
 (0)