df = DataFrame({'Letter': x, 'N': y})
grouped = df.groupby('Letter')
for group in grouped:
    figure()
matplotlib.pyplot.hist(group[1].N)
show()
Plotting histograms from grouped data in a pandas DataFrame