Last answered:

22 Oct 2022

Posted on:

30 Jun 2022

0

iterating in the verification status

how can I iterate to change the status to 0 and 1 instead  in general
I was trying to change female and males into 0 and 1 using a for loop but it didn't work
for I in data_string[:, 1]:
data_string[:, 1] = np.where(data_string[:, 1] == 'Female', o, 1)
it gave me a result of only 1

1 answers ( 0 marked as helpful)
Posted on:

22 Oct 2022

0

You can make sure of capital and small letters both in the data set and in 'where' arguments

Submit an answer