Skip to content

Commit 950d657

Browse files
authored
Merge pull request pandas-dev#2 from ofsouzap/my-typing-fixes
Fix typing error casting `._values` to a `DataFrame` in `pandas.core.generic`
2 parents ab4b1e0 + bafc3fa commit 950d657

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/core/generic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8024,7 +8024,7 @@ def asof(self, where, subset=None):
80248024
np.nan, index=self.columns, name=where[0]
80258025
)
80268026

8027-
locs = self.index.asof_locs(where, ~(nulls._values))
8027+
locs = self.index.asof_locs(where, ~cast("DataFrame", nulls._values))
80288028

80298029
# mask the missing
80308030
mask = locs == -1

0 commit comments

Comments
 (0)