I want to perform a few arithmetic operations on few columns and after operations are get performed again I need to put down result in CSV. After adding result into CSV, resultant answer needs to compare with total_sales_price
and accordingly output will shown as true or false.
Please refer my code suggest me what should I need to do.
data = pd.read_csv('pandastest.csv')
df = pd.DataFrame(data)
df.head()
#Result = np.where(data.sales_price/(1-(data.margin_pct/100)))
df['Result'] = (df['sales_price']/(1-(df['margin_pct']/100)))