79120468

Date: 2024-10-24 05:39:17
Score: 1.5
Natty:
Report link

Little modification to This Answer of acharuva

df['color'] = df.apply( lambda x: 'red' if x == 'Z' else 'green', axis=1)
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Paras