8000 dispatch Series[datetime64] comparison ops to DatetimeIndex by jbrockmendel · Pull Request #19800 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

dispatch Series[datetime64] comparison ops to DatetimeIndex #19800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 16 commits into from
Mar 1, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix error in older numpys
  • Loading branch information
jbrockmendel committed Feb 20, 2018
commit bd909b06002b6a4bee3b33e0b5d4913f7593ae9b
3 changes: 3 additions & 0 deletions pandas/core/indexes/datetimes.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ def wrapper(self, other):
else:
o_mask = other.view('i8') == libts.iNaT

# for older numpys we need to be careful not to pass a Series
# as a mask below
o_mask = com._values_from_object(o_mask)
if o_mask.any():
result[o_mask] = nat_result

Expand Down
0