Utwórz pustą tablicę Numpy bez kształtu

    a = []
    for x in y:
        a.append(x)
    a = np.array(a)
Bewildered Barracuda