I have a data set in Python Pandas that is similar to the table below in structure.
I am trying to add a new column that calculates the total NPV for each loan (adding up "NPV of loan payment calculated at the time of loan Issue date" per loan). I am expecting results to look like this:
I have tried writing for loops but I keep getting errors. Could anyone please help me with this?