Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import numpy as np
|
| 2 |
import pandas as pd
|
| 3 |
-
import streamlit as st
|
| 4 |
import gspread
|
| 5 |
import plotly.express as px
|
| 6 |
|
|
@@ -27,7 +33,7 @@ def init_conn():
|
|
| 27 |
|
| 28 |
gspreadcon = init_conn()
|
| 29 |
|
| 30 |
-
|
| 31 |
|
| 32 |
game_format = {'Win%': '{:.2%}', 'Vegas': '{:.2%}', 'Win% Diff': '{:.2%}'}
|
| 33 |
american_format = {'First Inning Lead Percentage': '{:.2%}', 'Fifth Inning Lead Percentage': '{:.2%}'}
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
st.set_page_config(layout="wide")
|
| 3 |
+
|
| 4 |
+
for name in dir():
|
| 5 |
+
if not name.startswith('_'):
|
| 6 |
+
del globals()[name]
|
| 7 |
+
|
| 8 |
import numpy as np
|
| 9 |
import pandas as pd
|
|
|
|
| 10 |
import gspread
|
| 11 |
import plotly.express as px
|
| 12 |
|
|
|
|
| 33 |
|
| 34 |
gspreadcon = init_conn()
|
| 35 |
|
| 36 |
+
|
| 37 |
|
| 38 |
game_format = {'Win%': '{:.2%}', 'Vegas': '{:.2%}', 'Win% Diff': '{:.2%}'}
|
| 39 |
american_format = {'First Inning Lead Percentage': '{:.2%}', 'Fifth Inning Lead Percentage': '{:.2%}'}
|