Articles → NUMPY → Arrays of zero in NumPy

Arrays of zero in NumPy






Purpose





Example




import numpy as np

np.zeros(5) # Single dimensional array


Picture showing one dimensional array in numpy

Click to Enlarge

import numpy as np

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