Pandas Créer une colonne si égale
df['color'] = ['red' if x == 'Z' else 'green' for x in df['Set']]
Clumsy Cockroach
df['color'] = ['red' if x == 'Z' else 'green' for x in df['Set']]