We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75bb4fc commit d06eeceCopy full SHA for d06eece
pandas/tests/plotting/test_frame.py
@@ -3395,11 +3395,11 @@ def test_bar_numeric(self):
3395
# Bar plot with numeric index have tick location values equal to index
3396
# values
3397
# GH: 11465
3398
- index = np.arange(10, 20, dtype=np.int64)
3399
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
3400
ax = df.plot.bar()
3401
ticklocs = ax.xaxis.get_ticklocs()
3402
- tm.assert_numpy_array_equal(ticklocs, index)
+ expected = np.arange(10, 20, dtype=np.int64)
+ tm.assert_numpy_array_equal(ticklocs, expected)
3403
3404
def test_bar_multiindex(self):
3405
# Test from pandas/doc/source/user_guide/visualization.rst
0 commit comments