. . . . .
aaas = np.array([]) for file in files2:
aaa = np.load(file,allow_pickle=True)[0]
aaas = np.append(aaas,aaa)
print(len(aaas),'aaas' ) . . .
Question) I want to analyze the aaas in the data using this code. However, since the number of aaa is different depending on the data species, So I want to match the data species with the least aaa and randomize the aaa participating in the analysis in the case of more data species.
How can I do this?
It's hard because I'm new to Numpy. If you teach me, I will study hard based on it.
Aucun commentaire:
Enregistrer un commentaire