From 89fb6cfd26aa243c90f1e704b3de72b4ea26fe85 Mon Sep 17 00:00:00 2001 From: Carlos Souza Date: Tue, 21 Mar 2017 00:30:21 -0300 Subject: [PATCH] BUG #15713 fixing failing tests --- pandas/core/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandas/core/generic.py b/pandas/core/generic.py index be04fc7605be0..d431c9cfd56ac 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -3971,7 +3971,7 @@ def asof(self, where, subset=None): if not isinstance(where, Index): where = Index(where) if is_list else Index([where]) - if self.isnull().all(): + if self.isnull().values.all(): return pd.Series([np.nan]) nulls = self.isnull() if is_series else self[subset].isnull().any(1)