You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pls show the actual return values, rather than 'Bizarre behavior' as well as versioning information as indicated in the template. The more complete reports are the better.
Take the following dataframe:
I want to count the conditional number of True values, that is, I want to count the number of True values for each ID.
This works fine:
df.groupby('ID')['Litmus'].sum()
However, this does not:
df[4:7].groupby('ID')['Litmus'].sum()
To make it more interesting, this again works fine:
df[4:8].groupby('ID')['Litmus'].sum()
Bizarre behavior.
The text was updated successfully, but these errors were encountered: