pandas boolean array calculating the average of a column based on another column filter code example
Example: pandas boolean array calculating the average of a column based on another column filter
bike_sharing.loc[bike_sharing["workingday"] == 0, "casual"].mean()