Articles → NUMPY → Arrays Of Zero In Numpy

Arrays Of Zero In Numpy






Purpose





Example




import numpy as np

print(np.zeros(5)) # Single dimensional array


Picture showing one dimensional array in numpy
Click to Enlarge

import numpy as np

print(np.zeros((5, 5))) # Two dimensional array


Picture showing two dimensional array in numpy
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Monday, March 18, 2019

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250