F1-analysis / pages /Championship_Standings.py
tracinginsights's picture
Update pages/Championship_Standings.py
b67d7dd
raw
history blame
382 Bytes
import streamlit as st
from repo_directory import Championship_Standings
from repo_directory import button
import numpy as np
import datetime
# select year
# YEAR = st.selectbox(
# 'Select Year',
# list(np.arange(1950,2023))[::-1]
# )
df = Championship_Standings.get_results()
current_year = datetime.datetime.now().year
Championship_Standings.plot(df, current_year)