NumPy, which stands for Numerical Python, is a library consisting of multidimensional array objects and a collection of routines for processing those arrays. Using NumPy, mathematical and logical operations on arrays can be performed.
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.
Arrays are very frequently used in data science, where speed and resources are very important.
- Importing NumPy
- Creating arrays - both one-dimensional and multi-dimensional
- Accessing/Changing elements, rows, columns, etc.
- Inbuilt functions
- Linear Algebra
- Summary statistics
Tanvi Bugdani LGM-SoC, 2021