diff options
Diffstat (limited to 'components/valuation.py')
| -rw-r--r-- | components/valuation.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/valuation.py b/components/valuation.py index 5536818..b6e9d46 100644 --- a/components/valuation.py +++ b/components/valuation.py @@ -567,6 +567,13 @@ def _render_earnings_history(ticker: str): use_container_width=True, hide_index=False, ) + st.download_button( + "Download CSV", + display.to_csv().encode(), + file_name=f"{ticker.upper()}_earnings_history.csv", + mime="text/csv", + key=f"dl_earnings_{ticker}", + ) # EPS chart — oldest to newest df_chart = eh.sort_index() |
