I have the following code:
if data['Open'] >= data['Close']:
data['Color'] = 'True'
What i want to do is compare the two addGreen
or Red
in [Color]
column in pandas. But i am getting
ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
How can i fix this?