Pandas Series Object

In this article, we will discuss some common use of pandas series data structure.

the Series wraps both a sequence of values and a sequence of indices, which we can access with the values and index attributes.

Series object is basically interchangeable with a one-dimensional NumPy array. The essential difference is the presence of the index: while the NumPy array has an implicitly defined integer index used to access the values, the Pandas Series has an explicitly defined index associated with the values.

Pandas Series can be also seen as a specialization of a Python dictionary. A dictionary is a structure that maps arbitrary keys to a set of arbitrary values, and a Series is a structure that maps typed keys to a set of typed values. Pandas Series makes it much more efficient than Python dictionaries for certain operations.


Phone: 512-539-0390
NJ Training Academy Inc , 405 Dry Gulch Bend
Cedar Park, Texas, 78613