8000 TST: fix warning for pie chart by ivanovmg · Pull Request #37669 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

TST: fix warning for pie chart #37669

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 8, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
TST: assert no warning is raised
  • Loading branch information
ivanovmg committed Nov 7, 2020
commit 840a823be86290d257923dd521b066e2f2d9ca13
7 changes: 3 additions & 4 deletions pandas/tests/plotting/test_frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2659,11 +2659,10 @@ def test_pie_df_nan(self):

# GH 37668
if mpl.__version__ >= "3.3":
kwargs = {"normalize": True}
with tm.assert_produces_warning(None):
df.plot.pie(subplots=True, ax=axes, legend=True, normalize=True)
else:
kwargs = {}

df.plot.pie(subplots=True, ax=axes, legend=True, **kwargs)
df.plot.pie(subplots=True, ax=axes, legend=True)

base_expected = ["0", "1", "2", "3"]
for i, ax in enumerate(axes):
Expand Down
0