Sorry for my english.
I have a question. I have this data frame and I would like to calculate the result of the profit that is in my dataframe : if Sellings - (Couts_fixe + Couts_Variables) >=0 : corporation tax = (Sellings - (Couts_fixe + Couts_Variables))*Taxes else: corporation tax = 0
I think it is something like that but that doesn't work.
I have Write this :
if (df['Sellings']-df['Couts_Tot']) >=0:
df['Taxes_Soc'] = (df['Sellings'] - df['Couts_Fixes'] - df['Couts_Variables'])*df['Taxes']
else : df['Taxes_Soc'] = 0
and they answers : "The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all()."
Thanks for your help.
