From 31b0c492c930a36ef29c1a7f6f3165329ec4526d Mon Sep 17 00:00:00 2001 From: Brock Date: Sun, 15 Nov 2020 14:34:46 -0800 Subject: [PATCH] CI: DataFrame.apply(np.any) --- pandas/tests/frame/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandas/tests/frame/conftest.py b/pandas/tests/frame/conftest.py index 486d140849159..05ceb2ded71d0 100644 --- a/pandas/tests/frame/conftest.py +++ b/pandas/tests/frame/conftest.py @@ -76,6 +76,11 @@ def bool_frame_with_na(): # set some NAs df.iloc[5:10] = np.nan df.iloc[15:20, -2:] = np.nan + + # For `any` tests we need to have at least one True before the first NaN + # in each column + for i in range(4): + df.iloc[i, i] = True return df