What advantages do NumPy arrays offer over (nested) Python lists?
Nested Lists :
- Python lists are efficient general-purpose containers that support efficient operations like insertion,appending,deletion and concatenation.
- The limitations of lists are that they don’t support “vectorized” operations like element wise addition and multiplication, and the fact that they can contain objects of differing types mean that Python must store type information for every element, and must execute type dispatching code when operating on each element.