vendredi 6 novembre 2020

Insert 1's random into a column pandas dataframe python

I have a dataframe with 182 rows. I want to add a column to it full of 0's except for twelve 1's distributed random in the df. Is it possible? Thanks




Aucun commentaire:

Enregistrer un commentaire