List comprehension to create new column on condition

PHOTO EMBED

Thu Jul 01 2021 12:43:38 GMT+0000 (Coordinated Universal Time)

Saved by @tomz #python

[1 if x<=30 else 0 for x in df_w['Mid-Point']]
content_copyCOPY