Spaces:
Running
Running
Commit
·
6f7cc68
1
Parent(s):
8e69eed
Remove percentile colors from pitch speed in pitch leaderboard
Browse files- app.py +1 -0
- pitch_leaderboard.py +1 -1
app.py
CHANGED
|
@@ -31,6 +31,7 @@ if __name__ == '__main__':
|
|
| 31 |
with gr.Tab('Acknowledgements'):
|
| 32 |
gr.Markdown(acknowledgements)
|
| 33 |
|
|
|
|
| 34 |
gr.Markdown(f'**Data up to:** {latest_data_date}')
|
| 35 |
gr.Markdown(f'**Last updated:** {updated}')
|
| 36 |
gr.Markdown(limitations)
|
|
|
|
| 31 |
with gr.Tab('Acknowledgements'):
|
| 32 |
gr.Markdown(acknowledgements)
|
| 33 |
|
| 34 |
+
gr.Markdown('---')
|
| 35 |
gr.Markdown(f'**Data up to:** {latest_data_date}')
|
| 36 |
gr.Markdown(f'**Last updated:** {updated}')
|
| 37 |
gr.Markdown(limitations)
|
pitch_leaderboard.py
CHANGED
|
@@ -12,7 +12,7 @@ from plotting import stat_cmap
|
|
| 12 |
|
| 13 |
STATS = ['Count', 'Usage', 'Avg Velo', 'Max Velo', 'Swing%', 'Z-Swing%', 'Chase%', 'Contact%', 'Z-Contact%', 'O-Contact%', 'SwStr%', 'Whiff%', 'CSW%', 'GB%', 'FB%', 'LD%', 'Zone%', 'Arm%', 'Glove%', 'High%', 'Low%', 'MM%']
|
| 14 |
PCT_STATS = ['Usage', 'Swing%', 'Z-Swing%', 'Chase%', 'Contact%', 'Z-Contact%', 'O-Contact%', 'SwStr%', 'Whiff%', 'CSW%', 'GB%', 'FB%', 'LD%', 'Zone%', 'Arm%', 'Glove%', 'High%', 'Low%', 'MM%']
|
| 15 |
-
STATS_WITH_PCTLS = ['
|
| 16 |
COLUMNS = ['Pitcher', 'Team', 'Pitch', 'Pitch (General)'] + STATS
|
| 17 |
|
| 18 |
PITCH_TYPES = [pitch_type for pitch_type in ball_kind.values() if pitch_type != '-']
|
|
|
|
| 12 |
|
| 13 |
STATS = ['Count', 'Usage', 'Avg Velo', 'Max Velo', 'Swing%', 'Z-Swing%', 'Chase%', 'Contact%', 'Z-Contact%', 'O-Contact%', 'SwStr%', 'Whiff%', 'CSW%', 'GB%', 'FB%', 'LD%', 'Zone%', 'Arm%', 'Glove%', 'High%', 'Low%', 'MM%']
|
| 14 |
PCT_STATS = ['Usage', 'Swing%', 'Z-Swing%', 'Chase%', 'Contact%', 'Z-Contact%', 'O-Contact%', 'SwStr%', 'Whiff%', 'CSW%', 'GB%', 'FB%', 'LD%', 'Zone%', 'Arm%', 'Glove%', 'High%', 'Low%', 'MM%']
|
| 15 |
+
STATS_WITH_PCTLS = ['Swing%', 'Z-Swing%', 'Chase%', 'Contact%', 'Z-Contact%', 'O-Contact%', 'SwStr%', 'Whiff%', 'CSW%', 'GB%', 'FB%', 'LD%', 'Zone%']
|
| 16 |
COLUMNS = ['Pitcher', 'Team', 'Pitch', 'Pitch (General)'] + STATS
|
| 17 |
|
| 18 |
PITCH_TYPES = [pitch_type for pitch_type in ball_kind.values() if pitch_type != '-']
|