In [2]:
import numpy as np
In [4]:
a = np.array([1,2,3,4,5], float)
In [6]:
a.mean()
Out[6]:
In [8]:
a.sum()
Out[8]:
In [11]:
b = np.array([1,2,3,4,5,6])
In [12]:
b.mean()
Out[12]:
In [13]:
b.sum()
Out[13]:
In [18]:
import pandas as pd
In [19]:
series = pd.Series(['David', 'Cheng-Han', 'test', 42, -14324])
In [22]:
series
Out[22]:
In [23]:
type(series)
Out[23]:
In [ ]: