import pandas as pd
def replace_values(df):
df['qualify'] = df['qualify'].replace({'yes': True, 'no': False})
return df
df1 = pd.DataFrame({'name': ['Tom', 'Jack', 'Steve', 'Ricky'], 'qualify': ['yes', 'no', 'yes', 'no']})
df2 = pd.DataFrame({'name': ['Adam', 'Eve', 'Stark', 'Rogers'], 'qualify': ['no', 'yes', 'no', 'yes']})
print(replace_values(df1))
print(replace_values(df2))