We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Timestamp comparisons raise TypeError in some cases where datetimes do not:
Timestamp
datetime
ts = pd.Timestamp.now() ts2 = ts.tz_localize("UTC") dt = ts.to_pydatetime() dt2 = ts2.to_pydatetime() >>> ts == ts2 # <-- TypeError >>> dt == dt2 False
The datetime comparison will raise for inequalities, just not == or !=.
==
!=
Changing this behavior would be an API change, but it would likely simplify a bunch of headaches (including a bug in array_equivalent)
The text was updated successfully, but these errors were encountered:
Matching the stdlib makes sense here.
Sorry, something went wrong.
yeah this would be ok to change (its sligthly user facing so would need a note)
Successfully merging a pull request may close this issue.
Timestamp
comparisons raise TypeError in some cases wheredatetime
s do not:The datetime comparison will raise for inequalities, just not
==
or!=
.Changing this behavior would be an API change, but it would likely simplify a bunch of headaches (including a bug in array_equivalent)
The text was updated successfully, but these errors were encountered: