Consider the avocado dataset. How to find the mean of 'Total Volume' from 29 dec 2015 to 13 april 2018 of Boston 'region'.
I am trying to calculate it by df.loc()
import pandas as pd
data_new = data.loc[(data['Date']>='2015-12-29')&(data['Date']<='2018-04-13')&(data['region']=='Boston')]
print(data_new.mean())
Is it right or I have to provide the axis for the mean()?
.mean()