Answers for "pandas boolean array calculating the average of two columns based on a filter or a 3rd column"

0

pandas boolean array calculating the average of two columns based on a filter or a 3rd column

print(bike_sharing[bike_sharing['workingday']==0][['casual', 'registered']].mean())
print(bike_sharing[bike_sharing['workingday']==1][['casual', 'registered']].mean())
Posted by: Guest on April-26-2021

Code answers related to "pandas boolean array calculating the average of two columns based on a filter or a 3rd column"

Python Answers by Framework

Browse Popular Code Answers by Language