We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f866c26 commit 9418c6eCopy full SHA for 9418c6e
pandas/tests/plotting/test_frame.py
@@ -3348,11 +3348,11 @@ def test_bar_numeric(self):
3348
# Bar plot with numeric index have tick location values equal to index
3349
# values
3350
# GH: 11465
3351
- index = np.arange(10, 20, dtype=np.int64)
3352
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
3353
ax = df.plot.bar()
3354
ticklocs = ax.xaxis.get_ticklocs()
3355
- tm.assert_numpy_array_equal(ticklocs, index)
+ expected = np.arange(10, 20, dtype=np.int64)
+ tm.assert_numpy_array_equal(ticklocs, expected)
3356
3357
def test_bar_multiindex(self):
3358
# Test from pandas/doc/source/user_guide/visualization.rst
0 commit comments