panda Buat kolom jika sama

df['color'] = ['red' if x == 'Z' else 'green' for x in df['Set']]
Clumsy Cockroach