Skip to content

REF: implement ABCTimestamp, ABCTimedelta, ABCTick #34054

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 4 commits into from
May 7, 2020

Conversation

jbrockmendel
Copy link
Member

Motivation: to make more progress on getting DateOffset into cython, we need to be able to import Timestamp into liboffsets. ATM that would induce circular dependencies.

This allows us to merge c_timestamp back into timestamps.pyx; the initial motivation for that was to be able to cimport _Timestamp into libconversion.

In a follow-up we can use this pattern to make a faster is_interval check (that doesnt have to go through python-space)

@@ -0,0 +1,20 @@
from cpython.datetime cimport datetime, timedelta

cdef class ABCTimedelta(timedelta):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ic, so now we have a cdef class that we can do instance on w/o having to import the world, nice.

@jreback jreback added the Datetime Datetime data dtype label May 7, 2020
@jreback jreback added this to the 1.1 milestone May 7, 2020
@jreback jreback merged commit fa3662c into pandas-dev:master May 7, 2020
@jbrockmendel jbrockmendel deleted the base-util branch May 7, 2020 22:46
rhshadrach pushed a commit to rhshadrach/pandas that referenced this pull request May 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants