Skip to content

Commit

Permalink
Merge pull request pandas-dev#2 from ofsouzap/my-typing-fixes
Browse files Browse the repository at this point in the history
Fix typing error casting `._values` to a `DataFrame` in `pandas.core.generic`
  • Loading branch information
dl-lim authored Nov 9, 2024
2 parents ab4b1e0 + bafc3fa commit 950d657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 950d657

Please sign in to comment.