Pandas groupby to find percent True and False
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping
--
Chapters
00:00 Pandas Groupby To Find Percent True And False
00:41 Accepted Answer Score 15
00:50 Thank you
--
Full question
https://stackoverflow.com/questions/3031...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #python27 #pandas
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Lost Jungle Looping
--
Chapters
00:00 Pandas Groupby To Find Percent True And False
00:41 Accepted Answer Score 15
00:50 Thank you
--
Full question
https://stackoverflow.com/questions/3031...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #python27 #pandas
#avk47
ACCEPTED ANSWER
Score 15
Something like this:
In [13]: g = df.groupby('SITE')['VALUE'].mean()
In [14]: g[g > 0.1]
Out[14]:
SITE
Canada 0.5
USA 1.0