Google provided me with the code:
for i in df.index:
df.at[i, 'job'] = 0 if df.at[i, 'job'] == 'unemployed' else 1
But python says: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
I'm not sure how to fix it.