Skip to content

PERF: improves performance in groupby.size #11152

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
Sep 20, 2015

Conversation

behzadnouri
Copy link
Contributor

on master:

In [1]: n = 100000

In [2]: np.random.seed(2718281)

In [3]: dr = date_range('2015-09-19', periods=n, freq='T')

In [4]: ts = Series(np.random.choice(n, n), index=np.random.choice(dr, n))

In [5]: %timeit ts.resample('5T', how='size')
1 loops, best of 3: 538 ms per loop

on branch:

In [5]: %timeit ts.resample('5T', how='size')
10 loops, best of 3: 27.6 ms per loop

@jreback jreback added Groupby Performance Memory or execution speed performance labels Sep 19, 2015
@jreback jreback added this to the 0.17.0 milestone Sep 19, 2015
jreback added a commit that referenced this pull request Sep 20, 2015
PERF: improves performance in groupby.size
@jreback jreback merged commit 6d048d9 into pandas-dev:master Sep 20, 2015
@jreback
Copy link
Contributor

jreback commented Sep 20, 2015

thanks!

@behzadnouri behzadnouri deleted the grby-size branch September 20, 2015 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Groupby Performance Memory or execution speed performance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants