Spaces:
Running
Running
James McCool
commited on
Commit
·
2680992
1
Parent(s):
b324c2d
Include range_var in DraftKings and FanDuel MMA ROO flex file calculations
Browse files
function_hold/MMA_functions.py
CHANGED
|
@@ -116,7 +116,7 @@ def DK_MMA_ROO_Build(projections_file, std_var, distribution_type):
|
|
| 116 |
ko_dict = dict(zip(basic_own_df.Player, basic_own_df.KO_odds))
|
| 117 |
sub_dict = dict(zip(basic_own_df.Player, basic_own_df.Sub_odds))
|
| 118 |
|
| 119 |
-
flex_file = basic_own_df[['Player', 'Salary', 'Median', 'KO_odds', 'Sub_odds']]
|
| 120 |
flex_file = flex_file.rename(columns={"Agg": "Median"})
|
| 121 |
flex_file['Median'] = flex_file['Median'] - (flex_file['Median'] * (flex_file['range_var']-.5))
|
| 122 |
flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
|
|
@@ -343,7 +343,7 @@ def FD_MMA_ROO_Build(projections_file, std_var, distribution_type):
|
|
| 343 |
ko_dict = dict(zip(basic_own_df.Player, basic_own_df.KO_odds))
|
| 344 |
sub_dict = dict(zip(basic_own_df.Player, basic_own_df.Sub_odds))
|
| 345 |
|
| 346 |
-
flex_file = basic_own_df[['Player', 'Salary', 'Median', 'KO_odds', 'Sub_odds']]
|
| 347 |
flex_file = flex_file.rename(columns={"Agg": "Median"})
|
| 348 |
flex_file['Median'] = flex_file['Median'] - (flex_file['Median'] * (flex_file['range_var']-.5))
|
| 349 |
flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
|
|
|
|
| 116 |
ko_dict = dict(zip(basic_own_df.Player, basic_own_df.KO_odds))
|
| 117 |
sub_dict = dict(zip(basic_own_df.Player, basic_own_df.Sub_odds))
|
| 118 |
|
| 119 |
+
flex_file = basic_own_df[['Player', 'Salary', 'Median', 'KO_odds', 'Sub_odds', 'range_var']]
|
| 120 |
flex_file = flex_file.rename(columns={"Agg": "Median"})
|
| 121 |
flex_file['Median'] = flex_file['Median'] - (flex_file['Median'] * (flex_file['range_var']-.5))
|
| 122 |
flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
|
|
|
|
| 343 |
ko_dict = dict(zip(basic_own_df.Player, basic_own_df.KO_odds))
|
| 344 |
sub_dict = dict(zip(basic_own_df.Player, basic_own_df.Sub_odds))
|
| 345 |
|
| 346 |
+
flex_file = basic_own_df[['Player', 'Salary', 'Median', 'KO_odds', 'Sub_odds', 'range_var']]
|
| 347 |
flex_file = flex_file.rename(columns={"Agg": "Median"})
|
| 348 |
flex_file['Median'] = flex_file['Median'] - (flex_file['Median'] * (flex_file['range_var']-.5))
|
| 349 |
flex_file['Floor'] = flex_file['Median'] * (1-flex_file['range_var'])
|