Spaces:
Running
Running
James McCool
commited on
Commit
·
e240cbf
1
Parent(s):
f3f1aff
Fixed a floating point issue.
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
|
@@ -182,10 +182,10 @@ def init_baselines(data_req: str):
|
|
| 182 |
stint_stats = pd.DataFrame(list(cursor))
|
| 183 |
|
| 184 |
if len(stint_stats) > 0:
|
| 185 |
-
# Create stint_id in game_rot for merging
|
| 186 |
game_rot['stint_id'] = (game_rot['GAME_ID'].astype(str) + '_' +
|
| 187 |
game_rot['PERSON_ID'].astype(str) + '_' +
|
| 188 |
-
game_rot['Start'].
|
| 189 |
|
| 190 |
# Select columns to merge from stint_stats
|
| 191 |
stint_cols = ['stint_id', 'stint_PTS', 'stint_FGM', 'stint_FGA', 'stint_FG3M', 'stint_FG3A',
|
|
|
|
| 182 |
stint_stats = pd.DataFrame(list(cursor))
|
| 183 |
|
| 184 |
if len(stint_stats) > 0:
|
| 185 |
+
# Create stint_id in game_rot for merging (ensure float format to match data hook)
|
| 186 |
game_rot['stint_id'] = (game_rot['GAME_ID'].astype(str) + '_' +
|
| 187 |
game_rot['PERSON_ID'].astype(str) + '_' +
|
| 188 |
+
game_rot['Start'].apply(lambda x: str(float(x))))
|
| 189 |
|
| 190 |
# Select columns to merge from stint_stats
|
| 191 |
stint_cols = ['stint_id', 'stint_PTS', 'stint_FGM', 'stint_FGA', 'stint_FG3M', 'stint_FG3A',
|