mardi 2 octobre 2018

How to randomly assign a specific number to numpy array

For example, say you have N X 1 array that is filled with number 0-9. How do you randomly replace some of those numbers with negative one in numpy?




Aucun commentaire:

Enregistrer un commentaire