Skip to content

REF: avoid DTA/PA methods in SemiMonthOffset.apply_index #34783

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

Conversation

jbrockmendel
Copy link
Member

I think this gets the last implicit-external-dependencies in tslibs.

In [2]: dti = pd.date_range("2016-01-01", periods=10000, freq="S")              
In [3]: off = pd.offsets.SemiMonthEnd(-2)                                       
In [4]: %timeit dti + off                                                       
3.08 ms ± 108 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)  # <-- master
486 µs ± 7.16 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)  # <-- PR

@jreback jreback added the Frequency DateOffsets label Jun 15, 2020
@jreback jreback added this to the 1.1 milestone Jun 15, 2020
@jreback jreback merged commit 94a9f7d into pandas-dev:master Jun 15, 2020
@jbrockmendel jbrockmendel deleted the ref-liboffsets-semi_month-apply_index branch June 15, 2020 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants