Skip to content

PERF: MonthOffset.apply_index #35195

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
Jul 10, 2020
Merged

Conversation

jbrockmendel
Copy link
Member

import pandas as pd
import numpy as np

N = 10000
rng = pd.date_range(start="1/1/2000", periods=N, freq="T")
offset = pd.offsets.MonthBegin()

In [6]: %timeit offset + rng
463 µs ± 19 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)   # <-- PR
508 µs ± 18.3 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)  # <-- 1.0.4
736 µs ± 15 µs per loop (mean ± std. dev. of 7 runs, 1000 loops each)  # <-- master

@jreback jreback added Frequency DateOffsets Performance Memory or execution speed performance labels Jul 9, 2020
@jreback jreback added this to the 1.1 milestone Jul 9, 2020
@jreback jreback merged commit f5d7213 into pandas-dev:master Jul 10, 2020
@jreback
Copy link
Contributor

jreback commented Jul 10, 2020

thanks

@jbrockmendel jbrockmendel deleted the perf-apply_index branch July 10, 2020 14:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Frequency DateOffsets Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Performance regression in arithmetic.ApplyIndex.time_apply_index
2 participants