pandas boolean array calculating the average of a column based on another column filter
By Edmund Walsh at Apr 25 2021