Spaces:
Running
Running
Update pages/Championship_Standings.py
Browse files
pages/Championship_Standings.py
CHANGED
|
@@ -1,16 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
from repo_directory import Championship_Standings
|
| 3 |
from repo_directory import button
|
| 4 |
import numpy as np
|
| 5 |
import datetime
|
| 6 |
|
| 7 |
-
# select year
|
| 8 |
-
# YEAR = st.selectbox(
|
| 9 |
-
# 'Select Year',
|
| 10 |
-
# list(np.arange(1950,2023))[::-1]
|
| 11 |
-
# )
|
| 12 |
|
| 13 |
-
df = Championship_Standings.get_results()
|
| 14 |
current_year = datetime.datetime.now().year
|
|
|
|
| 15 |
|
| 16 |
Championship_Standings.plot(df, current_year)
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from repo_directory.v2 import Championship_Standings
|
| 3 |
from repo_directory import button
|
| 4 |
import numpy as np
|
| 5 |
import datetime
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
|
|
|
| 8 |
current_year = datetime.datetime.now().year
|
| 9 |
+
df = Championship_Standings.get_f1_drivers_standings(current_year)
|
| 10 |
|
| 11 |
Championship_Standings.plot(df, current_year)
|