Python lists, Numpy arrays and Pandas series

The convenience of different data structures

--

Let’s say you have the odd numbers between 1 and 20 and you are storing them in the following ways:

# Python list
my_odd_nums = [1, 3, 5, 7, 9, 11, 13, 15, 17, 19]
# Numpy array
my_odd_nums = numpy.array([1, 3, 5, 7, 9, 11, 13, 15, 17, 19])

--

--