James McCool
commited on
Commit
·
d0ffff7
1
Parent(s):
3b860be
Hoping this fixes the showdown pricing issue in the test database
Browse files
app.py
CHANGED
|
@@ -43,7 +43,7 @@ def grab_contest_player_info(db, sport, type, contest_date, contest_name, contes
|
|
| 43 |
player_info = pd.DataFrame(list(cursor)).drop('_id', axis=1)
|
| 44 |
player_info = player_info[player_info['Contest Date'] == contest_date]
|
| 45 |
player_info = player_info.rename(columns={'Display Name': 'Player'})
|
| 46 |
-
player_info = player_info.sort_values(by='Salary', ascending=True).drop_duplicates(subset='Player', keep='
|
| 47 |
|
| 48 |
info_maps = {
|
| 49 |
'position_dict': dict(zip(player_info['Player'], player_info['Position'])),
|
|
|
|
| 43 |
player_info = pd.DataFrame(list(cursor)).drop('_id', axis=1)
|
| 44 |
player_info = player_info[player_info['Contest Date'] == contest_date]
|
| 45 |
player_info = player_info.rename(columns={'Display Name': 'Player'})
|
| 46 |
+
player_info = player_info.sort_values(by='Salary', ascending=True).drop_duplicates(subset='Player', keep='last')
|
| 47 |
|
| 48 |
info_maps = {
|
| 49 |
'position_dict': dict(zip(player_info['Player'], player_info['Position'])),
|