First page Back Continue Last page Overview Graphics

Relationship to Numpy

We can directly access the index and the values of our Series S:

>>> S.index

RangeIndex(start=0, stop=6, step=1)

>>> S.values

array([11, 28, 72, 3, 5, 8])

The values are numpy ndarrays:

>>> type(S.values)

<class 'numpy.ndarray'>