#I'm running pylab but if you're not, don't forget to import pandas and matplotlib too! import wbdata countries = ["CL","UY","HU"] indicators = {'NY.GNP.PCAP.CD':'GNI per Capita'} df = wbdata.get_dataframe(indicators, country=countries, convert_date=False) df.head() df.tail() dfu = df.unstack(level=0) dfu.head() plt.figure(); dfu.plot(); plt.legend(loc='best'); plt.title("GNI Per Capita ($USD, Atlas Method)"); plt.xlabel('Date'); plt.ylabel('GNI Per Capita ($USD, Atlas Method');