From edb5c3cfc88ffc44dccb6237056248d2145948b8 Mon Sep 17 00:00:00 2001 From: Michael Waskom <mwaskom@gmail.com> Date: Sun, 17 Jul 2022 21:32:14 -0400 Subject: [PATCH] Pandas (?) backcompat --- tests/_stats/test_aggregation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/_stats/test_aggregation.py b/tests/_stats/test_aggregation.py index c2a030886e..08291d449b 100644 --- a/tests/_stats/test_aggregation.py +++ b/tests/_stats/test_aggregation.py @@ -89,7 +89,7 @@ def test_mean_sd(self, df, func): grouped = df.groupby("x", as_index=False)["y"] est = grouped.mean() - err = grouped.std() + err = grouped.std().fillna(0) # fillna needed only on pinned tests expected = est.assign(ymin=est["y"] - err["y"], ymax=est["y"] + err["y"]) assert_frame_equal(res, expected)