PERF: rendering of large number of categories #11305

Closed
jreback opened this Issue Oct 12, 2015 · 1 comment

Comments

Projects
None yet
1 participant
Contributor

jreback commented Oct 12, 2015

xref #11304

items = [str(i) for i in range(40000)]
s = pd.Series(items, dtype='category')
df = pd.DataFrame({'C':s, 'data':np.random.randn(40000)})
data = df[df.C=='20']
str(data.C)

This renders the string of all of the categories before chopping them, see here

This should check for a large number of categories first, then render the chopped portions.

jreback added this to the 0.17.1 milestone Oct 12, 2015

Contributor

jreback commented Oct 12, 2015

jreback closed this in 4777800 Nov 13, 2015

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