import streamlit as st from nsetools import Nse from nsepy import get_history from datetime import date, timedelta from PatternRecognition import GetPatternForData from VixAnalysis import * import yfinance as yf today = date.today() nse = Nse() all_stock_codes = nse.get_stock_codes() all_stock_names = dict(zip(nse.get_stock_codes().values(),nse.get_stock_codes().keys())) del all_stock_names['NAME OF COMPANY'] st.set_page_config(page_title='Jarvis', page_icon='N', layout='wide', initial_sidebar_state='auto') st.title('Jarvis') stock_tab, mf_tab = st.tabs(['Stocks', 'Mutual Funds']) with stock_tab: stock_selector_col, tenure_selector_start_col, tenure_selector_end_col = st.columns(3) with stock_selector_col: selected_stock = st.selectbox('Please select a stock for analysis', list(all_stock_names.keys()),help='Choose stock to analyze') ticker_yf = all_stock_names[selected_stock]+".NS" with tenure_selector_start_col: start_date = st.date_input("Start Date", today-timedelta(40)) with tenure_selector_end_col: end_date = st.date_input("End Date", today) if (end_date