Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ with col_1:
|
|
| 46 |
|
| 47 |
with col_2:
|
| 48 |
# Get player data and filter for pitchers
|
| 49 |
-
df_player = scraper.get_players(sport_id=selected_sport_id)
|
| 50 |
df_player = df_player.filter(pl.col('position').str.contains('P'))
|
| 51 |
df_player = df_player.with_columns(
|
| 52 |
(pl.concat_str(["name", "player_id"], separator=" - ").alias("pitcher_name_id"))
|
|
|
|
| 46 |
|
| 47 |
with col_2:
|
| 48 |
# Get player data and filter for pitchers
|
| 49 |
+
df_player = scraper.get_players(sport_id=selected_sport_id,season=2024)
|
| 50 |
df_player = df_player.filter(pl.col('position').str.contains('P'))
|
| 51 |
df_player = df_player.with_columns(
|
| 52 |
(pl.concat_str(["name", "player_id"], separator=" - ").alias("pitcher_name_id"))
|