Super learner
This user is a Super Learner. To become a Super Learner, you need to reach Level 8.
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)
You can make sure of capital and small letters both in the data set and in 'where' arguments