Summary

See the advantages of Series and the pandas library.

  • The Series object is a one-dimensional data structure. It can hold numerical data, time data, strings, or arbitrary Python objects. If we’re dealing with numeric data, using pandas rather than a Python list will benefit us.
  • As compared to Python lists, pandas is faster, consumes less memory, and comes with built-in methods that are very useful to manipulate the data. Also, the index abstraction allows us to access values by position or label. A Series can have empty values and has some similarities to NumPy arrays. It’s the primary workhorse of pandas; mastering it will pay dividends.

Get hands-on with 1400+ tech skills courses.