I want to add a new value for each loop in python pandas
PRODUCT PRICE
0 ABC 5000
1 ABB 2500
2 ABE 1800
3 DCB 7200
if df1 is like above,
for i in df1['PRICE']:
if i>3000:
PURCHASE = True
else:
PURCHESE = False
after the loop, I want to make the df1 like below
PRODUCT PRICE PURCHSE
0 ABC 5000 True
1 ABB 2500 False
2 ABE 1800 False
3 DCB 7200 True
how would I do this?