In [2]:
import numpy as np

In [4]:
a = np.array([1,2,3,4,5], float)

In [6]:
a.mean()


Out[6]:
3.0

In [8]:
a.sum()


Out[8]:
15.0

In [11]:
b = np.array([1,2,3,4,5,6])

In [12]:
b.mean()


Out[12]:
3.5

In [13]:
b.sum()


Out[13]:
21

DataFrame


In [18]:
import pandas as pd

In [19]:
series = pd.Series(['David', 'Cheng-Han', 'test', 42, -14324])

In [22]:
series


Out[22]:
0        David
1    Cheng-Han
2         test
3           42
4       -14324
dtype: object

In [23]:
type(series)


Out[23]:
pandas.core.series.Series

In [ ]: