We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6aa9984 commit 2b8373bCopy full SHA for 2b8373b
pandas/tests/plotting/test_frame.py
@@ -3282,11 +3282,11 @@ def test_bar_numeric(self):
3282
# Bar plot with numeric index have tick location values equal to index
3283
# values
3284
# GH: 11465
3285
- index = np.arange(10, 20, dtype=np.int64)
3286
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
3287
ax = df.plot.bar()
3288
ticklocs = ax.xaxis.get_ticklocs()
3289
- tm.assert_numpy_array_equal(ticklocs, index)
+ expected = np.arange(10, 20, dtype=np.int64)
+ tm.assert_numpy_array_equal(ticklocs, expected)
3290
3291
def test_bar_multiindex(self):
3292
# Test from pandas/doc/source/user_guide/visualization.rst
0 commit comments