Pandas–Series
The first main data type we will learn about for pandas is the Series data type.
A series is a one-dimensional data structure. A Series is very similar to a NumPy array (in fact it is built on top of the NumPy array object). What differentiates the NumPy array from a Series, is that a Series can have axis labels, meaning it can be indexed by a label, instead of just a number location. It also doesn’t need to hold numeric data, it can hold any arbitrary Python Object.
10 | 23 | 56 | 17 | 52 | 61 | 73 | 90 | 26 | 72 |
So important point to remember for pandas series is:
- Homogeneous data
- Size Immutable
- Values of Data Mutable
Let’s import Pandas and explore the Series object with the help of python.