NumPy
package, which provides support for multi-dimensional arrays and mathematical operations on them. To install NumPy
, you can run the following command in your terminal :pip install numpy​
NumPy
in your Python code like this :import numpy as np​
The above code imports the NumPy
package and assigns it the alias "np
", which is a commonly used convention in the data science community. You can then use the functions and classes provided by NumPy
in your code, for example :
a = np.array([1, 2, 3])
print(a)
[1 2 3]