Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -3,6 +3,7 @@ import matplotlib.pyplot as plt
|
|
3 |
import numpy as np
|
4 |
import pandas as pd
|
5 |
import math
|
|
|
6 |
|
7 |
st.title("Калькулятор Toyota📄")
|
8 |
|
@@ -121,7 +122,7 @@ if st.button('Сюда кликнуть чтобы посчитать'):
|
|
121 |
array_CF, array_PV = get_array_CF_PV()
|
122 |
array_NPV = get_array_NPV()
|
123 |
|
124 |
-
IRR =
|
125 |
|
126 |
st.write(f'NPV за {Number_of_months} месяцев:', array_NPV[-1])
|
127 |
st.write(f'IRR на {Number_of_months} месяцев:', IRR)
|
|
|
3 |
import numpy as np
|
4 |
import pandas as pd
|
5 |
import math
|
6 |
+
import numpy_financial as npf
|
7 |
|
8 |
st.title("Калькулятор Toyota📄")
|
9 |
|
|
|
122 |
array_CF, array_PV = get_array_CF_PV()
|
123 |
array_NPV = get_array_NPV()
|
124 |
|
125 |
+
IRR = npf.irr(array_CF)
|
126 |
|
127 |
st.write(f'NPV за {Number_of_months} месяцев:', array_NPV[-1])
|
128 |
st.write(f'IRR на {Number_of_months} месяцев:', IRR)
|