# 8.39:  Use summary function with condition.  Show the average of the 'revenue' column, but only
# for those rows with 'NY' in the 'state' column.

import pandas as pd

df = pd.read_csv('../revenue.csv')


print(  df.loc[  df.state == 'NY' ].revenue.mean())

