I would like to ask the following, extracted from the course - Analyse Data with Python - Modifying Dataframes
Below is a code to compute Sales Tax in a new column
df['Sales Tax'] = df.Price * 0.075
Using similar concept, why can’t I find Sales Margin using
df['Sales Tax'] = df.Price - df.Cost ?
The suggested solution is
**df['Margin'] = df['Price'] - df['Cost to Manufacture']** but I do not understand why we cannot subtract column values by
df['Sales Tax'] = df.Price - df.Cost.
Would appreciate an explanation! Thank you very much!