Pandas erstellen Spalten, wenn gleich
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']]