TovaHasi commited on
Commit
67ec8b9
1 Parent(s): abd1bea

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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
 
@@ -193,9 +194,9 @@ def get_array_NPV():
193
  if st.button('Сюда кликнуть чтобы посчитать'):
194
  Number_pallets, Number_machines, Number_employees = get_number_pallets_and_machines_employees()
195
  array_CF, array_PV = get_array_CF_PV()
196
- array_NPV = get_array_NPV()
197
 
198
- IRR = np.irr(array_CF)
199
 
200
  st.write(f'NPV за {Number_of_months} месяцев:', array_NPV[-1])
201
  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 np_fin
7
 
8
  st.title("Калькулятор Toyota📄")
9
 
 
194
  if st.button('Сюда кликнуть чтобы посчитать'):
195
  Number_pallets, Number_machines, Number_employees = get_number_pallets_and_machines_employees()
196
  array_CF, array_PV = get_array_CF_PV()
197
+ array_NPV = get_array_NPV()
198
 
199
+ IRR = np_fin.irr(array_CF)
200
 
201
  st.write(f'NPV за {Number_of_months} месяцев:', array_NPV[-1])
202
  st.write(f'IRR на {Number_of_months} месяцев:', IRR)