James McCool
commited on
Commit
·
b5d9378
1
Parent(s):
85bca50
Standardize collection names in app.py for Draftkings and Fanduel seed frame initialization functions, ensuring consistent casing for improved data integrity.
Browse files
app.py
CHANGED
@@ -76,7 +76,7 @@ def init_DK_seed_frames(sharp_split):
|
|
76 |
@st.cache_data(ttl = 60)
|
77 |
def init_DK_secondary_seed_frames(sharp_split):
|
78 |
|
79 |
-
collection = db['
|
80 |
cursor = collection.find()
|
81 |
raw_data = pd.DataFrame(list(cursor))
|
82 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
@@ -101,7 +101,7 @@ def init_DK_secondary_seed_frames(sharp_split):
|
|
101 |
@st.cache_data(ttl = 60)
|
102 |
def init_DK_auxiliary_seed_frames(sharp_split):
|
103 |
|
104 |
-
collection = db['
|
105 |
cursor = collection.find()
|
106 |
raw_data = pd.DataFrame(list(cursor))
|
107 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
@@ -151,7 +151,7 @@ def init_FD_seed_frames(sharp_split):
|
|
151 |
@st.cache_data(ttl = 60)
|
152 |
def init_FD_secondary_seed_frames(sharp_split):
|
153 |
|
154 |
-
collection = db['
|
155 |
cursor = collection.find()
|
156 |
raw_data = pd.DataFrame(list(cursor))
|
157 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
@@ -176,7 +176,7 @@ def init_FD_secondary_seed_frames(sharp_split):
|
|
176 |
@st.cache_data(ttl = 60)
|
177 |
def init_FD_auxiliary_seed_frames(sharp_split):
|
178 |
|
179 |
-
collection = db['
|
180 |
cursor = collection.find()
|
181 |
raw_data = pd.DataFrame(list(cursor))
|
182 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
76 |
@st.cache_data(ttl = 60)
|
77 |
def init_DK_secondary_seed_frames(sharp_split):
|
78 |
|
79 |
+
collection = db['DK_MLB_Secondary_name_map']
|
80 |
cursor = collection.find()
|
81 |
raw_data = pd.DataFrame(list(cursor))
|
82 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
101 |
@st.cache_data(ttl = 60)
|
102 |
def init_DK_auxiliary_seed_frames(sharp_split):
|
103 |
|
104 |
+
collection = db['DK_MLB_Turbo_name_map']
|
105 |
cursor = collection.find()
|
106 |
raw_data = pd.DataFrame(list(cursor))
|
107 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
151 |
@st.cache_data(ttl = 60)
|
152 |
def init_FD_secondary_seed_frames(sharp_split):
|
153 |
|
154 |
+
collection = db['FD_MLB_Secondary_name_map']
|
155 |
cursor = collection.find()
|
156 |
raw_data = pd.DataFrame(list(cursor))
|
157 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|
|
|
176 |
@st.cache_data(ttl = 60)
|
177 |
def init_FD_auxiliary_seed_frames(sharp_split):
|
178 |
|
179 |
+
collection = db['FD_MLB_Turbo_name_map']
|
180 |
cursor = collection.find()
|
181 |
raw_data = pd.DataFrame(list(cursor))
|
182 |
names_dict = dict(zip(raw_data['key'], raw_data['value']))
|