Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -53,9 +53,18 @@ def init_baselines():
|
|
| 53 |
cursor = collection.find()
|
| 54 |
|
| 55 |
raw_display = pd.DataFrame(list(cursor))
|
|
|
|
| 56 |
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
| 60 |
|
| 61 |
-
st.dataframe(
|
|
|
|
| 53 |
cursor = collection.find()
|
| 54 |
|
| 55 |
raw_display = pd.DataFrame(list(cursor))
|
| 56 |
+
DK_seed = raw_display[['SP1', 'SP2', 'C', '1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'Team_count', 'salary', 'proj']]
|
| 57 |
|
| 58 |
+
collection = db["FD_MLB_seed_frame"]
|
| 59 |
+
cursor = collection.find()
|
| 60 |
+
|
| 61 |
+
raw_display = pd.DataFrame(list(cursor))
|
| 62 |
+
FD_seed = raw_display[['P', 'C_1B', '2B', '3B', 'SS', 'OF1', 'OF2', 'OF3', 'UTIL', 'Team_count', 'salary', 'proj']]
|
| 63 |
+
|
| 64 |
+
return DK_seed, FD_seed
|
| 65 |
+
|
| 66 |
+
DK_seed, FD_seed = init_baselines()
|
| 67 |
|
| 68 |
+
st.dataframe(DK_seed.head(1000).style.format(precision=2), height=500, use_container_width=True)
|
| 69 |
|
| 70 |
+
st.dataframe(FD_seed.head(1000).style.format(precision=2), height=500, use_container_width=True)
|