text_plain_output_1.png image_output_1.png
import matplotlib.pyplot as plt

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

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.figure(figsize=(18, 8))
plt.bar(positionsForBars, stateFreq.values)
plt.xticks(positionsForBars, labels)
plt.title('state found ufo')