Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def add_column(df):
|
|
61 |
return_df['Steals'] = return_df["Minutes"] * return_df["STL"]
|
62 |
return_df['Blocks'] = return_df["Minutes"] * return_df["BLK"]
|
63 |
return_df['Turnovers'] = return_df["Minutes"] * return_df["TOV"]
|
64 |
-
return_df['Fantasy'] = (return_df["2P"] *
|
65 |
|
66 |
export_df = return_df[['Player', 'Position', 'Team', 'Opp', 'Minutes', '2P', '3P', 'FT', 'Points', 'Rebounds', 'Assists', 'PRA', 'PR', 'PA', 'RA', 'Steals', 'Blocks', 'Turnovers', 'Fantasy']]
|
67 |
|
|
|
61 |
return_df['Steals'] = return_df["Minutes"] * return_df["STL"]
|
62 |
return_df['Blocks'] = return_df["Minutes"] * return_df["BLK"]
|
63 |
return_df['Turnovers'] = return_df["Minutes"] * return_df["TOV"]
|
64 |
+
return_df['Fantasy'] = (return_df["2P"] * 3) + (return_df["3P"] * 3.5) + return_df['FT'] + (return_df["Rebounds"] * 1.25) + (return_df["Assists"] * 1.5) + (return_df["Steals"] * 2) + (return_df["Blocks"] * 2) + (return_df["Turnovers"] * -.5)
|
65 |
|
66 |
export_df = return_df[['Player', 'Position', 'Team', 'Opp', 'Minutes', '2P', '3P', 'FT', 'Points', 'Rebounds', 'Assists', 'PRA', 'PR', 'PA', 'RA', 'Steals', 'Blocks', 'Turnovers', 'Fantasy']]
|
67 |
|