James McCool commited on
Commit
30cafb8
·
1 Parent(s): 5a1f606

Replace print statement with Streamlit write for DraftKings MMA ROO build process

Browse files
Files changed (1) hide show
  1. function_hold/MMA_functions.py +2 -1
function_hold/MMA_functions.py CHANGED
@@ -1,3 +1,4 @@
 
1
  from numpy import nan as np_nan
2
  from numpy import where as np_where
3
  from numpy import random as np_random
@@ -122,7 +123,7 @@ def DK_MMA_ROO_Build(projections_file, std_var, distribution_type):
122
  flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
123
  flex_file['Ceiling'] = flex_file['Median'] * (1+flex_file['range_var'])
124
  flex_file['STD'] = (flex_file['Median'] / std_var)
125
- print(flex_file)
126
  flex_file = flex_file[['Player', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD']]
127
  flex_file = flex_file.reset_index(drop=True)
128
  hold_file = flex_file.copy()
 
1
+ import streamlit as st
2
  from numpy import nan as np_nan
3
  from numpy import where as np_where
4
  from numpy import random as np_random
 
123
  flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
124
  flex_file['Ceiling'] = flex_file['Median'] * (1+flex_file['range_var'])
125
  flex_file['STD'] = (flex_file['Median'] / std_var)
126
+ st.write(flex_file)
127
  flex_file = flex_file[['Player', 'Salary', 'Floor', 'Median', 'Ceiling', 'STD']]
128
  flex_file = flex_file.reset_index(drop=True)
129
  hold_file = flex_file.copy()