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 01ca94c commit a67fa9bCopy full SHA for a67fa9b
pandas/tests/plotting/test_frame.py
@@ -3382,11 +3382,11 @@ def test_bar_numeric(self):
3382
# Bar plot with numeric index have tick location values equal to index
3383
# values
3384
# GH: 11465
3385
- index = np.arange(10, 20, dtype=np.int64)
3386
df = pd.DataFrame(np.random.rand(10), index=np.arange(10, 20))
3387
ax = df.plot.bar()
3388
ticklocs = ax.xaxis.get_ticklocs()
3389
- tm.assert_numpy_array_equal(ticklocs, index)
+ expected = np.arange(10, 20, dtype=np.int64)
+ tm.assert_numpy_array_equal(ticklocs, expected)
3390
3391
def test_bar_multiindex(self):
3392
# Test from pandas/doc/source/user_guide/visualization.rst
0 commit comments