PERF: improves performance in remove_unused_categories #11643

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
2 participants
Contributor

behzadnouri commented Nov 19, 2015

on master:

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

In [2]: n = 1 << 20

In [3]: ix = tm.makeCategoricalIndex(n, n // 10)

In [4]: %timeit ix.remove_unused_categories()
1 loops, best of 3: 527 ms per loop

on branch:

In [4]: %timeit ix.remove_unused_categories()
1 loops, best of 3: 216 ms per loop

jreback added this to the 0.17.1 milestone Nov 19, 2015

Contributor

jreback commented Nov 19, 2015

merged via 7031e5f

thanks you sir!

jreback closed this Nov 19, 2015

behzadnouri deleted the behzadnouri:cat-rm-unused branch Nov 21, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment