Lirsen Myrtaj commited on
Commit
48d3ffd
1 Parent(s): 2654178

Update ef.py

Browse files
Files changed (1) hide show
  1. ef.py +21 -2
ef.py CHANGED
@@ -168,7 +168,26 @@ def ef_viz(stock_df,choices):
168
  #st.write(op_str)
169
  op_df = op_df.style.set_properties(**{'color':'green'})
170
  st.subheader('Optimal Returns vs Volatility and Portfolio weights')
171
- st.write(op_df)
 
 
 
 
 
 
 
 
 
172
  im = Image.open('EFvsMinvar.png')
173
  st.subheader('Understand the Efficient Frontier')
174
- st.image(im, caption='Elements of the Efficient Frontier',use_column_width='auto')
 
 
 
 
 
 
 
 
 
 
 
168
  #st.write(op_str)
169
  op_df = op_df.style.set_properties(**{'color':'green'})
170
  st.subheader('Optimal Returns vs Volatility and Portfolio weights')
171
+ col1, col2, col3 = st.columns([1,6,1])
172
+ with col1:
173
+ st.write("")
174
+
175
+ with col2:
176
+ st.write(op_df)
177
+
178
+ with col3:
179
+ st.write("")
180
+
181
  im = Image.open('EFvsMinvar.png')
182
  st.subheader('Understand the Efficient Frontier')
183
+ col1, col2, col3 = st.columns([1,6,1])
184
+
185
+ with col1:
186
+ st.write("")
187
+
188
+ with col2:
189
+ st.image(im, caption='Elements of the Efficient Frontier',use_column_width='auto')
190
+
191
+ with col3:
192
+ st.write("")
193
+