NumPy means Numerical Python which is a library consisting of multidimensional array objects and a collection of routines for processing arrays. Mathematical and logical operations on arrays can be performed by using NumPy. As it is known that mathematics is the foundation of machine learning, most of the mathematical tasks can be performed using NumPy.