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 6ca0ae7 commit 3a301f5Copy full SHA for 3a301f5
pandas/tests/plotting/test_frame.py
@@ -3358,11 +3358,11 @@ def test_bar_numeric(self):
3358
# Bar plot with numeric index have tick location values equal to index
3359
# values
3360
# GH: 11465
3361
- index = np.arange(10, 20, dtype=np.int64)
3362
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
3363
ax = df.plot.bar()
3364
ticklocs = ax.xaxis.get_ticklocs()
3365
- tm.assert_numpy_array_equal(ticklocs, index)
+ expected = np.arange(10, 20, dtype=np.int64)
+ tm.assert_numpy_array_equal(ticklocs, expected)
3366
3367
def test_bar_multiindex(self):
3368
# Test from pandas/doc/source/user_guide/visualization.rst
0 commit comments