Update app.py
Browse files
app.py
CHANGED
|
@@ -509,12 +509,12 @@ def server(input, output, session):
|
|
| 509 |
baseOnBalls = d[0]['liveData']['boxscore']['teams'][team_side]['players'][player_id]['stats']['pitching']['baseOnBalls']
|
| 510 |
|
| 511 |
df_player = pl.DataFrame({
|
| 512 |
-
'
|
| 513 |
-
'
|
| 514 |
-
'
|
| 515 |
-
'
|
| 516 |
-
'
|
| 517 |
-
'
|
| 518 |
})
|
| 519 |
|
| 520 |
return render.DataGrid(
|
|
|
|
| 509 |
baseOnBalls = d[0]['liveData']['boxscore']['teams'][team_side]['players'][player_id]['stats']['pitching']['baseOnBalls']
|
| 510 |
|
| 511 |
df_player = pl.DataFrame({
|
| 512 |
+
'Pitches': int(pitches),
|
| 513 |
+
'PA': int(battersFaced),
|
| 514 |
+
'R': int(runs),
|
| 515 |
+
'ER': int(earnedRuns),
|
| 516 |
+
'K': int(strikeOuts),
|
| 517 |
+
'BB': int(baseOnBalls)
|
| 518 |
})
|
| 519 |
|
| 520 |
return render.DataGrid(
|