Spaces:
Running
Running
James McCool
commited on
Commit
·
3dae3b7
1
Parent(s):
aa68bcd
Updated raw_baselines to filter out players with zero minutes and corrected player names for consistency.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -100,8 +100,8 @@ def init_baselines():
|
|
| 100 |
raw_display = pd.DataFrame(list(cursor))
|
| 101 |
raw_display.replace('', np.nan, inplace=True)
|
| 102 |
raw_display = raw_display.rename(columns={"Name": "Player"})
|
| 103 |
-
raw_baselines = raw_display[['Player', 'Position', 'Team', 'Opp', 'Minutes', 'FGM', 'FGA', 'FG2M', 'FG2A', 'Threes', 'FG3A', 'FTM', 'FTA', 'TRB', 'AST', 'STL', 'BLK', 'TOV', 'PRA', 'PR', 'PA', 'RA']]
|
| 104 |
-
|
| 105 |
raw_baselines['Player'].replace(['Jaren Jackson', 'Nic Claxton', 'Jabari Smith', 'Lu Dort', 'Moe Wagner', 'Kyle Kuzma', 'Trey Murphy', 'Cameron Thomas'],
|
| 106 |
['Jaren Jackson Jr.', 'Nicolas Claxton', 'Jabari Smith Jr.', 'Luguentz Dort', 'Moritz Wagner', 'Kyle Kuzma Jr.',
|
| 107 |
'Trey Murphy III', 'Cam Thomas'], inplace=True)
|
|
|
|
| 100 |
raw_display = pd.DataFrame(list(cursor))
|
| 101 |
raw_display.replace('', np.nan, inplace=True)
|
| 102 |
raw_display = raw_display.rename(columns={"Name": "Player"})
|
| 103 |
+
# raw_baselines = raw_display[['Player', 'Position', 'Team', 'Opp', 'Minutes', 'FGM', 'FGA', 'FG2M', 'FG2A', 'Threes', 'FG3A', 'FTM', 'FTA', 'TRB', 'AST', 'STL', 'BLK', 'TOV', 'PRA', 'PR', 'PA', 'RA']]
|
| 104 |
+
raw_baselines = raw_baselines[raw_baselines['Minutes'] > 0]
|
| 105 |
raw_baselines['Player'].replace(['Jaren Jackson', 'Nic Claxton', 'Jabari Smith', 'Lu Dort', 'Moe Wagner', 'Kyle Kuzma', 'Trey Murphy', 'Cameron Thomas'],
|
| 106 |
['Jaren Jackson Jr.', 'Nicolas Claxton', 'Jabari Smith Jr.', 'Luguentz Dort', 'Moritz Wagner', 'Kyle Kuzma Jr.',
|
| 107 |
'Trey Murphy III', 'Cam Thomas'], inplace=True)
|