Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
| 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>
|