import matplotlib.pyplot as plt %matplotlib inline import pandas as pd
a = 2
df = pd.DataFrame([{"a": a, "b": b} for a,b in zip(range(10), range(30,40))])
df.head()
df.set_index("a").plot()
<matplotlib.axes._subplots.AxesSubplot at 0x7f62e4062a20>