I would like to know if it could be possible to print one row (specific fields) on the screen, then ask for a boolean value, then add this value in the corresponding field in a new column.
For example, I have a dataframe
Name     Age   Job
Alexandra 24  Student
Michael   42  Lawyer
John      53  Data Analyst
...
I would like to print on the screen rows, checking them one by one. So I should have:
Alexandra Student
then a command that asks if Alexandra is female. Since Alexandra is a female, I should put True (input value) as value in a new column, called Sex.
Then I move to the next row:
Michael Lawyer
Since Michael is not a female, I should put False in the Sex column.
Same for John.
At the end, my expected output would be:
Name     Age   Job               Sex 
Alexandra 24  Student           True
Michael   42  Lawyer            False
John      53  Data Analyst      False
...
 
     
    