Skip to content

Commit

Permalink
Backport PR #48398 on branch 1.5.x (WARN: Avoid FutureWarnings in tes…
Browse files Browse the repository at this point in the history
…ts) (#48420)

* Backport PR #48398: WARN: Avoid FutureWarnings in tests

* Update

Co-authored-by: Patrick Hoefler <61934744+phofl@users.noreply.github.com>
Co-authored-by: Marc Garcia <garcia.marc@gmail.com>
  • Loading branch information
3 people authored Sep 8, 2022
1 parent 0f8bece commit ba3494c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/tests/frame/methods/test_fillna.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,6 +777,6 @@ def test_fillna_nonconsolidated_frame():
],
columns=["i1", "i2", "i3", "f1"],
)
df_nonconsol = df.pivot("i1", "i2")
df_nonconsol = df.pivot(index="i1", columns="i2")
result = df_nonconsol.fillna(0)
assert result.isna().sum().sum() == 0

0 comments on commit ba3494c

Please sign in to comment.