Skip to content

Fix PyDateTime_CheckExact checks as proxy for Timestamp checks in cython files #25851

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

Closed
ArtificialQualia opened this issue Mar 23, 2019 · 0 comments · Fixed by #25853
Closed
Labels
Datetime Datetime data dtype Internals Related to non-user accessible pandas implementation
Milestone

Comments

@ArtificialQualia
Copy link
Contributor

This is a followup to the discussion in #25746.

PyDateTime_CheckExact is being used as a proxy for isinstance(obj, Timestamp) checks for performance reasons. However, if a subclass of the std datetime lib is being used, these checks are not sufficient to determine if an object is a Timestamp or not. Thus a performant replacement must be found.

I have a working fix, but need to do some more performance testing and add proper test cases. If that goes well, I will submit a PR for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype Internals Related to non-user accessible pandas implementation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants