Update pitch_summary_functions.py
Browse files
pitch_summary_functions.py
CHANGED
@@ -242,8 +242,9 @@ def df_clean(df):
|
|
242 |
#df_copy = df_copy[~df_copy.pitch_type.isin(["EP", "PO", "KN", "CS", "SC", "FA"])].reset_index(drop=True)
|
243 |
#df_copy = df_copy[~df_copy.pitch_type.isin(["EP", "PO", "CS", "SC", "FA"])].reset_index(drop=True)
|
244 |
|
|
|
245 |
df_copy['pitch_type'] = df_copy['pitch_type'].replace({'FT':'SI',
|
246 |
-
|
247 |
'SV':'SL',
|
248 |
'FO':'FS'})
|
249 |
|
|
|
242 |
#df_copy = df_copy[~df_copy.pitch_type.isin(["EP", "PO", "KN", "CS", "SC", "FA"])].reset_index(drop=True)
|
243 |
#df_copy = df_copy[~df_copy.pitch_type.isin(["EP", "PO", "CS", "SC", "FA"])].reset_index(drop=True)
|
244 |
|
245 |
+
|
246 |
df_copy['pitch_type'] = df_copy['pitch_type'].replace({'FT':'SI',
|
247 |
+
'FA':'FF',
|
248 |
'SV':'SL',
|
249 |
'FO':'FS'})
|
250 |
|