create empty numpy array with shape code example
Example 1: declare empty array of complex type python
numpy.empty(shape, dtype=float, order='C')
Example 2: create empty numpy array without shape
a = []
for x in y:
a.append(x)
a = np.array(a)