Créez un tableau numpy vide sans forme
a = []
for x in y:
a.append(x)
a = np.array(a)
Bewildered Barracuda
a = []
for x in y:
a.append(x)
a = np.array(a)