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