Let’s see how to create numpy array populated just with zeros in Numpy Python library.
Introduction of zero method
To create Numpy array populated with just zeros you should use zeros function.
import numpy as np zeros_array = np.zeros(shape=(6, 5)) print(zeros_array)
In zeros syntax only shape argument does not the default value. I set the shape in a tuple and got 6 x 5 shaped array.