I create DataFrame object in Jupyter notebook:
data = {\'state\':[\'Ohio\',\'Ohio\',\'Ohio\',\'Nevada\',\'Nevada\'], \'year\':[2000, 2001, 2002, 2000,
pop is a method of pandas.DataFrame. You need to use frame['pop']
pop
pandas.DataFrame
frame['pop']