NumPy (Numerical Python) is an open source Python library that’s used for working with numerical data in Python. It is a general-purpose array-processing package. It provides a high-performance multidimensional array object, and tools for working with these arrays. It is the fundamental package for scientific computing with Python.
Numpy can also be used as an efficient multi-dimensional container of generic data.
- Basic working knowledge of Python.
If you already have Python, you can install NumPy with:
pip install numpy
Or
conda install numpy
If you don’t have Python yet, you might want to consider using Anaconda. It’s the easiest way to get started.
Any time you want to use a package or library in your code, you first need to make it accessible. In order to start using NumPy and all of the functions available in NumPy, you’ll need to import it. This can be easily done with this import statement:
import numpy as np
(You can use any variable instead of np)