samedi 17 avril 2021

pandas change column value based on other column

I am trying to change [age] values with random number in the range defined in [tranches_age] column

index age tranches_age
1 NaN 80-85
2 NaN 70-75
3 NaN 30-35

enter image description here




Aucun commentaire:

Enregistrer un commentaire