Skip to content

Instantly share code, notes, and snippets.

@ilonacodes
Created June 8, 2021 13:13
Show Gist options
  • Save ilonacodes/5da25ffefbf490cf7253c1fca3794980 to your computer and use it in GitHub Desktop.
Save ilonacodes/5da25ffefbf490cf7253c1fca3794980 to your computer and use it in GitHub Desktop.
# Calculate NPV of uneven cash flows
cash_flow = pd.DataFrame({'Year': [1, 2, 3, 4, 5, 6],
'Cash': [150, 200, 250, 350, 400, 450]})
print(cash_flow)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment