Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,24 +1,24 @@
|
|
| 1 |
-
import seaborn as sns
|
| 2 |
-
import streamlit as st
|
| 3 |
-
from st_aggrid import AgGrid, GridOptionsBuilder, GridUpdateMode
|
| 4 |
-
import requests
|
| 5 |
-
import polars as pl
|
| 6 |
-
from datetime import date
|
| 7 |
-
|
| 8 |
-
# Load data
|
| 9 |
-
df = pl.read_csv("tjstuff_plus_pitch_data_2024")
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
column_config_dict = {
|
| 13 |
-
'pitcher_id': 'Pitcher ID',
|
| 14 |
-
'pitcher_name': 'Pitcher Name',
|
| 15 |
-
'pitch_type': 'Pitch Type',
|
| 16 |
-
'pitches': 'Pitches',
|
| 17 |
-
'tj_stuff_plus': 'tjStuff+',
|
| 18 |
-
'pitch_grade': 'Grade'
|
| 19 |
-
}
|
| 20 |
-
|
| 21 |
-
st.dataframe(df[['pitcher_id', 'pitcher_name', 'pitch_type', 'pitches', 'tj_stuff_plus', 'pitch_grade']],
|
| 22 |
-
hide_index=True,
|
| 23 |
-
column_config=column_config_dict,
|
| 24 |
-
width=1500)
|
|
|
|
| 1 |
+
import seaborn as sns
|
| 2 |
+
import streamlit as st
|
| 3 |
+
from st_aggrid import AgGrid, GridOptionsBuilder, GridUpdateMode
|
| 4 |
+
import requests
|
| 5 |
+
import polars as pl
|
| 6 |
+
from datetime import date
|
| 7 |
+
|
| 8 |
+
# Load data
|
| 9 |
+
df = pl.read_csv("tjstuff_plus_pitch_data_2024.csv")
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
column_config_dict = {
|
| 13 |
+
'pitcher_id': 'Pitcher ID',
|
| 14 |
+
'pitcher_name': 'Pitcher Name',
|
| 15 |
+
'pitch_type': 'Pitch Type',
|
| 16 |
+
'pitches': 'Pitches',
|
| 17 |
+
'tj_stuff_plus': 'tjStuff+',
|
| 18 |
+
'pitch_grade': 'Grade'
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
st.dataframe(df[['pitcher_id', 'pitcher_name', 'pitch_type', 'pitches', 'tj_stuff_plus', 'pitch_grade']],
|
| 22 |
+
hide_index=True,
|
| 23 |
+
column_config=column_config_dict,
|
| 24 |
+
width=1500)
|