Spaces:
Running
Running
tracinginsights
commited on
Commit
•
92663aa
1
Parent(s):
c21c63f
Update pages/Race_Trace.py
Browse files- pages/Race_Trace.py +8 -0
pages/Race_Trace.py
CHANGED
@@ -2,6 +2,14 @@ from repo_directory import button
|
|
2 |
import streamlit as st
|
3 |
from repo_directory import Race_Trace
|
4 |
import pandas as pd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
|
6 |
Race_Trace.get_latest_ergast()
|
7 |
|
|
|
2 |
import streamlit as st
|
3 |
from repo_directory import Race_Trace
|
4 |
import pandas as pd
|
5 |
+
import kaggle
|
6 |
+
|
7 |
+
|
8 |
+
def get_kaggle_data():
|
9 |
+
# download the files from dataset
|
10 |
+
kaggle.api.authenticate()
|
11 |
+
kaggle.api.dataset_download_files('jtrotman/formula-1-race-events', path='formula-1-race-events', unzip=True)
|
12 |
+
|
13 |
|
14 |
Race_Trace.get_latest_ergast()
|
15 |
|