

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


NumPy is a Python library used for working with arrays. NumPy stands for Numerical Python. In Python we have lists that serve the purpose of arrays, but they are slow to process. NumPy aims to provide an array object that is up to 50x faster than traditional Python lists. The array object in NumPy is called ndarray, it provides a lot of supporting functions that make working with ndarray very easy.
import numpy
Example import numpy arr = numpy.array([ 1 , 2 , 3 , 4 , 5 ]) print(arr) import numpy as np
Example import numpy as np arr = np.array([ 1 , 2 , 3 , 4 , 5 ]) print(arr)