Bhanu Prasanna commited on
Commit
50215fb
1 Parent(s): a91353a

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +5 -2
main.py CHANGED
@@ -21,9 +21,12 @@ num_tick = len(com_sel)
21
 
22
  if num_tick > 1:
23
 
24
- com_data = yf.download(com_sel, start="2019-03-01", end="2024-03-01")['Adj Close']
25
  com_data.dropna(inplace = True)
26
 
 
 
 
27
  st.dataframe(com_data, use_container_width=True)
28
 
29
  ## Log-Return of Company Dataset
@@ -76,7 +79,7 @@ if num_tick > 1:
76
  ## Let's get started with Monte Carlo Simulations
77
 
78
  ## How many times should we run Monte Carlo
79
- num_of_port = 5000
80
 
81
  ## Create an Array to store the weights as they are generated
82
  all_weights = np.zeros((num_of_port, num_tick))
 
21
 
22
  if num_tick > 1:
23
 
24
+ com_data = yf.download(com_sel, start="1900-01-01", end="2024-03-08")['Adj Close']
25
  com_data.dropna(inplace = True)
26
 
27
+ com_sel = com_data.columns.to_list()
28
+ com_sel_name.sort()
29
+
30
  st.dataframe(com_data, use_container_width=True)
31
 
32
  ## Log-Return of Company Dataset
 
79
  ## Let's get started with Monte Carlo Simulations
80
 
81
  ## How many times should we run Monte Carlo
82
+ num_of_port = 8000
83
 
84
  ## Create an Array to store the weights as they are generated
85
  all_weights = np.zeros((num_of_port, num_tick))