I run an 'if...else...' statement similar to:
if df['column1']==0:
df['column2']=0
else:
df['column2']=100*['column3']
and obtain the following "value error": The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()
Since I'm fairly new to Python, I was hoping that you might guide me towards potential reasons to this error. I haven't had any luck with finding similar questions on StackOverflow. I am (unfortunately) not able to provide a data example.
Thank you.