F1-analysis / pages /WDC_Contenders.py
tracinginsights's picture
Create WDC_Contenders.py
4407ef6
raw
history blame
398 Bytes
import streamlit as st
from repo_directory import WDC_Contenders
from repo_directory import button
# Get the current drivers standings
driver_standings = WDC_Contenders.get_drivers_standings()
# Get the maximum amount of points
points = WDC_Contenders.calculate_max_points_for_remaining_season()
# Print which drivers can still win
WDC_Contenders.calculate_who_can_win(driver_standings, points)