In [6]:
from google_ngram import *
# this is safe because there's just the one class, named Gngram
import matplotlib.pyplot as plt
%matplotlib inline
g = Gngram(['google', 'ngram'], years=[1940, 2000], case_insensitive=True)
print g.df_parents.head()
plt.plot(g.df_parents.index, g.df_parents)
Out[6]:
In [ ]: