I tried to do
if (df1['Year']>5)&(df1['TotalMntProducts']>2000):
print(1)
else:
print(0)
this in order to make a new column by condition and got ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().
what should I do?