I have an excel spreadsheet which I am reading into a dataframe using pandas. I have a second excel file which contains some formulas which need to be applied on the first excel in order to create a new column. My dataframe of first excel looks somewhat like this:
RPA Rej RPA Acc
1 0
5 3
0 0
As per the second excel, I want to subtract the values of RPA Rej and RPA Acc and create a new column Total with their result and write the whole dataframe into an excel file, which I very much achieved by this:
df['Total'] = df['RPA Rej'] - df['RPA Acc']
and this:
df.to_excel('data.xlsx', index = False)
but I want to see the excel formula when I click on the values in Total column , something like this:
I don't know how to do arithmetic operations on python using excel formulas. If you guys could help me achieve this, I'd really appreciate that

