Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -35,6 +35,7 @@ def init_baselines():
|
|
| 35 |
all_values = worksheet.get_all_values()
|
| 36 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 37 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
|
|
|
| 38 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 39 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 40 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
@@ -56,6 +57,7 @@ def init_baselines():
|
|
| 56 |
all_values = worksheet.get_all_values()
|
| 57 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 58 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
|
|
|
| 59 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 60 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 61 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
@@ -77,6 +79,7 @@ def init_baselines():
|
|
| 77 |
all_values = worksheet.get_all_values()
|
| 78 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 79 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
|
|
|
| 80 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 81 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 82 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
@@ -98,6 +101,7 @@ def init_baselines():
|
|
| 98 |
all_values = worksheet.get_all_values()
|
| 99 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 100 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
|
|
|
| 101 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 102 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 103 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
|
|
| 35 |
all_values = worksheet.get_all_values()
|
| 36 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 37 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
| 38 |
+
frame_hold['PointsAvg'] = frame_hold['PointsAvg'].astype(float)
|
| 39 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 40 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 41 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
|
|
| 57 |
all_values = worksheet.get_all_values()
|
| 58 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 59 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
| 60 |
+
frame_hold['PointsAvg'] = frame_hold['PointsAvg'].astype(float)
|
| 61 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 62 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 63 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
|
|
| 79 |
all_values = worksheet.get_all_values()
|
| 80 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 81 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
| 82 |
+
frame_hold['PointsAvg'] = frame_hold['PointsAvg'].astype(float)
|
| 83 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 84 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 85 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|
|
|
|
| 101 |
all_values = worksheet.get_all_values()
|
| 102 |
cell_vals = [row[0:11] for row in all_values[2:500]]
|
| 103 |
frame_hold = pd.DataFrame(cell_vals, columns=['Player', 'Team', 'Salary', 'OwnAvg', 'PointsAvg', 'Points per $', 'blank', 'drop', 'drop2', 'drop3', 'GPP Rank'])
|
| 104 |
+
frame_hold['PointsAvg'] = frame_hold['PointsAvg'].astype(float)
|
| 105 |
frame_hold['OwnAvg'] = frame_hold['OwnAvg'].str.replace('%', '').astype(float)/100
|
| 106 |
frame_hold['Floor'] = frame_hold['PointsAvg'] * .15
|
| 107 |
frame_hold['Ceiling'] = frame_hold['PointsAvg'] * 1.85
|