Skip to content

Commit 3a301f5

Browse files
committed
CLN: Clean up test_bar_numeric
1 parent 6ca0ae7 commit 3a301f5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/plotting/test_frame.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3358,11 +3358,11 @@ def test_bar_numeric(self):
33583358
# Bar plot with numeric index have tick location values equal to index
33593359
# values
33603360
# GH: 11465
3361-
index = np.arange(10, 20, dtype=np.int64)
33623361
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
33633362
ax = df.plot.bar()
33643363
ticklocs = ax.xaxis.get_ticklocs()
3365-
tm.assert_numpy_array_equal(ticklocs, index)
3364+
expected = np.arange(10, 20, dtype=np.int64)
3365+
tm.assert_numpy_array_equal(ticklocs, expected)
33663366

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

0 commit comments

Comments
 (0)