image_output_1.png
import matplotlib.pyplot as plt

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

import seaborn as sns

ufo = pd.read_csv('../input/scrubbed.csv')

countryFreq = ufo['country'].value_counts()
labels = list(countryFreq.index)
positionsForBars = list(range(len(labels)))
plt.xticks(positionsForBars, labels)

stateFreq = ufo['state'][ufo.country == 'us'].value_counts()
labels = list(stateFreq.index)
positionsForBars = list(range(len(labels)))
plt.xticks(positionsForBars, labels)

plt.figure(figsize=(18, 8))
ax = sns.countplot(ufo['state'][ufo.country == 'us']).set_title('State found ufo')