QuantumLearner commited on
Commit
0f7c82d
·
verified ·
1 Parent(s): 7b427a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -455,7 +455,9 @@ if st.sidebar.button("Run Analysis"):
455
  st.write("PC2 is more volatile than PC1, indicating greater fluctuations in the yield curve slope compared to the overall level of interest rates.")
456
 
457
  # Call the interpretation function
458
- interpret_pca(pca_df['PC1'], pca_df['PC2'], loadings, explained_variance)
 
 
459
 
460
  hide_streamlit_style = """
461
  <style>
 
455
  st.write("PC2 is more volatile than PC1, indicating greater fluctuations in the yield curve slope compared to the overall level of interest rates.")
456
 
457
  # Call the interpretation function
458
+ with st.expander("Principal Components Interpretation", expanded=False):
459
+ # Call the interpretation function
460
+ interpret_pca(pca_df['PC1'], pca_df['PC2'], loadings, explained_variance)
461
 
462
  hide_streamlit_style = """
463
  <style>