From bafc3fa0561f523a224c5b3b4aaa6de679b1da32 Mon Sep 17 00:00:00 2001 From: Ofsouzap Date: Sat, 9 Nov 2024 12:37:30 +0000 Subject: [PATCH] Correct typing error --- 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 35014674565ff..d77f973f124b1 100644 --- a/pandas/core/generic.py +++ b/pandas/core/generic.py @@ -8024,7 +8024,7 @@ def asof(self, where, subset=None): np.nan, index=self.columns, name=where[0] ) - locs = self.index.asof_locs(where, ~(nulls._values)) + locs = self.index.asof_locs(where, ~cast("DataFrame", nulls._values)) # mask the missing mask = locs == -1