Update functions/pitch_summary_functions.py
Browse files
functions/pitch_summary_functions.py
CHANGED
|
@@ -1086,8 +1086,8 @@ def stat_summary_table(df: pl.DataFrame,
|
|
| 1086 |
|
| 1087 |
|
| 1088 |
# Format start and end dates
|
| 1089 |
-
start_date_format = str(pd.to_datetime(df['game_date'][0]).strftime('%m/%d/%Y'))
|
| 1090 |
-
end_date_format = str(pd.to_datetime(df['game_date'][-1]).strftime('%m/%d/%Y'))
|
| 1091 |
|
| 1092 |
# Determine app context based on sport ID
|
| 1093 |
appContext = 'majorLeague' if sport_id == 1 else 'minorLeague'
|
|
|
|
| 1086 |
|
| 1087 |
|
| 1088 |
# Format start and end dates
|
| 1089 |
+
start_date_format = str(pd.to_datetime(df['game_date'][0])#.strftime('%m/%d/%Y'))
|
| 1090 |
+
end_date_format = str(pd.to_datetime(df['game_date'][-1])#.strftime('%m/%d/%Y'))
|
| 1091 |
|
| 1092 |
# Determine app context based on sport ID
|
| 1093 |
appContext = 'majorLeague' if sport_id == 1 else 'minorLeague'
|