In [4]:
import matplotlib.pyplot as plt
%matplotlib inline
import pandas as pd

Starting

In [5]:
a = 2
In [6]:
df = pd.DataFrame([{"a": a, "b": b} for a,b in zip(range(10), range(30,40))])
In [7]:
df.head()
Out[7]:
a b
0 0 30
1 1 31
2 2 32
3 3 33
4 4 34

Mapping

In [8]:
df.set_index("a").plot()
Out[8]:
<matplotlib.axes._subplots.AxesSubplot at 0x7f62e4062a20>
In [ ]: