for i,j in zip(data['Min7day'],data['close_price']):
if i > j:
data['New'] = 'Flat'
else
data['New'] = 'List'
I'm trying to insert a new column with a certain string when the condition is True. What happens is that instead of writing each row with the 'Flat or 'List' string , i get the same value in every single row. I get every row with 'Flat'.
What am I doing wrong here?
Thanks,
Steve