I have this a df with some columns. I could get the total sum of column ['Profit'] and ['Commission']. I am trying to get a new column ['Net Profit'] of the total sum from column ['Profit'] and ['Commission'] but I could get only a concatenation of lists or a sum of each row in the column
gross_profit = [df['Profit'].sum()]
commissions = [df['Commission'].sum()]
What I tried:
df['net_profit'] = df['Profit'] + df['Commission']
df['net_profit'] = df['Profit'].sum() + df['Commission'].sum()
By the way, how one can get a total sum of an Excel column in Python without going through Pandas?
Thank you.