Goto

Collaborating Authors

 numpy array and panda series


Python lists, Numpy arrays and Pandas series

#artificialintelligence

Let's say you have the odd numbers between 1 and 20 and you are storing them in the following ways: Lists, arrays and Pandas series look quite similar at a first glance, so people often ask -- why do we need different data structures? What are the pros and cons and use cases? The purpose of this brief article is to clear up some of that confusion. Lists are one of the 4 built-in data types in Python to store multiple items (3 other data types being dictionaries, tuples and sets). A single list can store multiple data types at once -- integers, floats, strings.