How to use display_chart method in SeleniumBase

Best Python code snippet using SeleniumBase

stocks.py

Source:stocks.py Github

copy

Full Screen

1import datetime2import streamlit as st3import pandas as pd4import FinanceDataReader as fdr5import plotly.express as px6st.set_page_config(7 page_title="Likelion AI School 주가 일별시세 App",8 page_icon="📈",9 layout="wide",10)11st.sidebar.header('검색어를 선택해 주세요.')12# Sidebar - year13thisyear = datetime.datetime.today().year14selected_year = st.sidebar.selectbox('Year', list(reversed(range(2010, thisyear+1))))15# Sidebar - ticker16unique_ticker = ["SPY", "QQQ", "GLD", "ICLD", "XOM"]17tickerSymbol = st.sidebar.selectbox('Ticker', unique_ticker)18# Sidebar - display_chart19display_chart = ["시세표", "종가", "거래량", "전일비"]20selected_chart = st.sidebar.multiselect('display chart', display_chart, display_chart)21# get data on this ticker22tickerDf = fdr.DataReader(tickerSymbol, str(selected_year))23st.write(f"""24# {tickerSymbol} 주식 일별 시세 📈25* 왼쪽에서 항목을 선택해 주세요.26""")27if "시세표" in selected_chart:28 st.write("## 시세표")29 st.dataframe(tickerDf)30if "종가" in selected_chart:31 st.write("## 종가")32 px_close = px.line(tickerDf[["Close"]])33 px_close34if "거래량" in selected_chart:35 st.write("## 거래량")36 px_volumne = px.bar(tickerDf[["Volume"]])37 px_volumne38if "전일비" in selected_chart:39 st.write("## 전일비")40 px_change = px.area(tickerDf[["Change"]])...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run SeleniumBase automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful