Skip to content

Commit

Permalink
CLN: add warning check pandas-dev#35945
Browse files Browse the repository at this point in the history
  • Loading branch information
fangchenli committed Sep 3, 2020
1 parent fa8662a commit d46025b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2796,10 +2796,12 @@ def test_table(self):
_check_plot_works(df.plot, table=True)
_check_plot_works(df.plot, table=df)

ax = df.plot()
assert len(ax.tables) == 0
plotting.table(ax, df.T)
assert len(ax.tables) == 1
# GH 35945 UserWarning
with tm.assert_produces_warning(None):
ax = df.plot()
assert len(ax.tables) == 0
plotting.table(ax, df.T)
assert len(ax.tables) == 1

def test_errorbar_scatter(self):
df = DataFrame(np.random.randn(5, 2), index=range(5), columns=["x", "y"])
Expand Down

0 comments on commit d46025b

Please sign in to comment.