Skip to content

Commit d06eece

Browse files
committed
CLN: Clean up test_bar_numeric
1 parent 75bb4fc commit d06eece

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
@@ -3395,11 +3395,11 @@ def test_bar_numeric(self):
33953395
# Bar plot with numeric index have tick location values equal to index
33963396
# values
33973397
# GH: 11465
3398-
index = np.arange(10, 20, dtype=np.int64)
33993398
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
34003399
ax = df.plot.bar()
34013400
ticklocs = ax.xaxis.get_ticklocs()
3402-
tm.assert_numpy_array_equal(ticklocs, index)
3401+
expected = np.arange(10, 20, dtype=np.int64)
3402+
tm.assert_numpy_array_equal(ticklocs, expected)
34033403

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

0 commit comments

Comments
 (0)