Multichem commited on
Commit
c1a4a10
·
verified ·
1 Parent(s): 9c30b2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -75,14 +75,14 @@ def init_DK_seed_frame():
75
  def init_FD_seed_frame():
76
  collection = db["FD_MLB_seed_frame"]
77
  cursor = collection.find()
78
-
79
- FD_seed = np.array(list(cursor))
 
80
 
81
  return FD_seed
82
 
83
  @st.cache_data
84
  def convert_df(array):
85
- # IMPORTANT: Cache the conversion to prevent computation on every rerun
86
  array = pd.DataFrame(array, columns=column_names)
87
  return df.to_csv().encode('utf-8')
88
 
 
75
  def init_FD_seed_frame():
76
  collection = db["FD_MLB_seed_frame"]
77
  cursor = collection.find()
78
+
79
+ raw_display = pd.DataFrame(list(cursor))
80
+ FD_seed = pd.to_numpy(raw_display)
81
 
82
  return FD_seed
83
 
84
  @st.cache_data
85
  def convert_df(array):
 
86
  array = pd.DataFrame(array, columns=column_names)
87
  return df.to_csv().encode('utf-8')
88