I can replace a couple of values in column, \'qualify\', with true or false as follows and works just fine:
df[\'qualify\'] = df[\'qualify\'].map({\'yes\':True, \