Spaces:
Running
Running
James McCool
commited on
Commit
·
38eab9f
1
Parent(s):
d39b71d
Convert prop_table stat columns to float for accurate numerical processing
Browse files
app.py
CHANGED
|
@@ -77,6 +77,10 @@ def pull_baselines():
|
|
| 77 |
prop_table['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
| 78 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
| 79 |
prop_table['Player'] = prop_table['Player'].str.strip()
|
|
|
|
|
|
|
|
|
|
|
|
|
| 80 |
|
| 81 |
worksheet = sh.worksheet('prop_trends_check')
|
| 82 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|
|
|
|
| 77 |
prop_table['Player'].replace(['JJ Peterka', 'Alexander Killorn', 'Matt Boldy', 'Nick Paul', 'Alex Kerfoot'],
|
| 78 |
['John-Jason Peterka', 'Alex Killorn', 'Matthew Boldy', 'Nicholas Paul', 'Alexander Kerfoot'], inplace=True)
|
| 79 |
prop_table['Player'] = prop_table['Player'].str.strip()
|
| 80 |
+
|
| 81 |
+
stat_columns = ['Team_Total', 'Player SOG', 'Player Goals', 'Player Assists', 'Player TP', 'Player Blocks', 'Player Saves']
|
| 82 |
+
for stat in stat_columns:
|
| 83 |
+
prop_table[stat] = prop_table[stat].astype(float)
|
| 84 |
|
| 85 |
worksheet = sh.worksheet('prop_trends_check')
|
| 86 |
raw_display = pd.DataFrame(worksheet.get_all_records())
|