Answers for "np.zeros data type not understood"

0

np.zeros data type not understood

import numpy as np
dim = 3 # number of entries
shp = (dim, 1) # shape tuple
x = np.zeros(shp) # second argument 'dtype' is not used, default is 'float'
print(x)
Posted by: Guest on July-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language