21
loading...
This website collects cookies to deliver better user experience
pip install numpy
# If you want to install from conda-forge
conda config --env --add channels conda-forge
# The actual install command
conda install numpy
import numpy as np
np
to make it easier to run the functions. You may use any other variable name or skip it all together.array()
from NumPy module.arr = np.array([])
arr = np.array([1,2,3] , [4,5,6])
arr
arr[0,1]
2
.arr.shape
(rows, columns)
. In this case, it would be (2,3)
.