In [1]:
import numpy as np
import pandas as pd
%matplotlib inline
In [2]:
num = np.random.randn(10)
In [3]:
num
Out[3]:
array([-0.42559566,  2.41714914, -0.11235299, -2.20919961, -0.36818768,
        0.33940087,  0.76533743,  0.26359083, -0.51136158, -1.48288657])
In [4]:
data = pd.DataFrame(num)
In [5]:
data
Out[5]:
0
0 -0.425596
1 2.417149
2 -0.112353
3 -2.209200
4 -0.368188
5 0.339401
6 0.765337
7 0.263591
8 -0.511362
9 -1.482887
In [6]:
data.plot()
Out[6]:
<matplotlib.axes._subplots.AxesSubplot at 0x10983d7b8>