BUG: groupby.count() on different dtypes seems buggy #8169

Closed
jreback opened this Issue Sep 3, 2014 · 0 comments

Comments

Projects
None yet
1 participant
Contributor

jreback commented Sep 3, 2014

from SO

something odd going on here:

vals = np.hstack((np.random.randint(0,5,(100,2)), np.random.randint(0,2,(100,2))))
df = pd.DataFrame(vals, columns=['a', 'b', 'c', 'd'])
df[df==2] = np.nan
df2 = df.copy()
df2['a'] = df2['a'].astype('float32')
df2['b'] = df2['b'].astype('float32')
df.groupby(['c', 'd']).count()
df2.groupby(['c','d']).count()

jreback added this to the 0.15.0 milestone Sep 3, 2014

jreback closed this in #8171 Sep 6, 2014

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