First page Back Continue Last page Overview Graphics
Series
- A Series is a one-dimensional labelled array-like object.
- It is capable of holding any data type, e.g. integers, floats, strings, Python objects, and so on.
- It can be seen as a data structure with two arrays: one functioning as the index, i.e. the labels, and the other one contains the actual data.
Example:
>>> import pandas as pd
>>> S = pd.Series([11, 28, 72, 3, 5, 8])
>>> S
0 11
1 28
2 72
3 3
4 5
5 8
dtype: int64
>>>
the actual data (or „values“)
the index