text_plain_output_1.png image_output_1.png
from scipy.stats import ttest_ind

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

museums = pd.read_csv('../input/museums.csv').dropna(subset=['Revenue'])
museums = museums[museums.Revenue != 0]

zoos = museums['Revenue'][museums['Museum Type'] == 'ZOO, AQUARIUM, OR WILDLIFE CONSERVATION']
other = museums['Revenue'][museums['Museum Type'] != 'ZOO, AQUARIUM, OR WILDLIFE CONSERVATION']

ttest_ind(zoos, other, equal_var=False)