Skip to content

PERF: put some Timetamp methods in _Timestamp #35036

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 1 commit into from
Jun 30, 2020

Conversation

jbrockmendel
Copy link
Member

In [2]: ts = pd.Timestamp.now()                                                                                                                                                                                    

In [3]: %timeit ts.is_month_start                                                                                                                                                                                  
58.3 ns ± 1.5 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)  # <-- PR
82.5 ns ± 2.16 ns per loop (mean ± std. dev. of 7 runs, 10000000 loops each)  # <-- master

Copy link
Member

@WillAyd WillAyd left a comment

Choose a reason for hiding this comment

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

lgtm

@WillAyd WillAyd added the Clean label Jun 29, 2020
@jreback jreback added the Datetime Datetime data dtype label Jun 29, 2020
@jreback jreback added this to the 1.1 milestone Jun 30, 2020
@jreback jreback merged commit 723141d into pandas-dev:master Jun 30, 2020
@jbrockmendel jbrockmendel deleted the cln-follow-2 branch June 30, 2020 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clean Datetime Datetime data dtype
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants