how to initiate empty numpy array with a shape code example
Example: create empty numpy array without shape
a = []
for x in y:
a.append(x)
a = np.array(a)
a = []
for x in y:
a.append(x)
a = np.array(a)