Update app.py
Browse files
app.py
CHANGED
|
@@ -22,10 +22,10 @@ pitcher_old_dict = dict(zip(df_year_old_group['pitcher_id'],df_year_old_group['p
|
|
| 22 |
|
| 23 |
app_ui = ui.page_fluid(
|
| 24 |
ui.card(
|
| 25 |
-
ui.card_header("2025
|
| 26 |
ui.row(
|
| 27 |
ui.column(4,
|
| 28 |
-
ui.markdown("""This app generates a table which shows the 2025
|
| 29 |
|
| 30 |
* Differences are calculated based on 2024 regular season data
|
| 31 |
* If 2024 data does not exist for pitcher, 2023 Data is used
|
|
@@ -130,7 +130,7 @@ def server(input, output, session):
|
|
| 130 |
def spring_data():
|
| 131 |
|
| 132 |
import polars as pl
|
| 133 |
-
df_spring = pl.read_parquet(f"hf://datasets/TJStatsApps/mlb_data/data/
|
| 134 |
|
| 135 |
|
| 136 |
date = (datetime.datetime.now() - datetime.timedelta(hours=8)).date()
|
|
|
|
| 22 |
|
| 23 |
app_ui = ui.page_fluid(
|
| 24 |
ui.card(
|
| 25 |
+
ui.card_header("2025 A Pitch Data App"),
|
| 26 |
ui.row(
|
| 27 |
ui.column(4,
|
| 28 |
+
ui.markdown("""This app generates a table which shows the 2025 A Pitch data.
|
| 29 |
|
| 30 |
* Differences are calculated based on 2024 regular season data
|
| 31 |
* If 2024 data does not exist for pitcher, 2023 Data is used
|
|
|
|
| 130 |
def spring_data():
|
| 131 |
|
| 132 |
import polars as pl
|
| 133 |
+
df_spring = pl.read_parquet(f"hf://datasets/TJStatsApps/mlb_data/data/a_pitch_data_2025.parquet")
|
| 134 |
|
| 135 |
|
| 136 |
date = (datetime.datetime.now() - datetime.timedelta(hours=8)).date()
|