Spaces:
Running
Running
Update pitch_summary_functions.py
Browse files
pitch_summary_functions.py
CHANGED
@@ -311,7 +311,7 @@ def df_clean(df):
|
|
311 |
# df_copy['vaa'] = np.arctan(df_copy['z_diff'] / df_copy['release_pos_y']) * 360 / np.pi
|
312 |
# df_copy['haa'] = np.arctan(-df_copy['x_diff'] / df_copy['release_pos_y']) * 360 / np.pi
|
313 |
df_copy['log_extension'] = np.log(df_copy['extension'])
|
314 |
-
df_copy = df_copy.dropna(subset=['pitch_type'])
|
315 |
return df_copy
|
316 |
|
317 |
### PITCH COLOURS ###
|
|
|
311 |
# df_copy['vaa'] = np.arctan(df_copy['z_diff'] / df_copy['release_pos_y']) * 360 / np.pi
|
312 |
# df_copy['haa'] = np.arctan(-df_copy['x_diff'] / df_copy['release_pos_y']) * 360 / np.pi
|
313 |
df_copy['log_extension'] = np.log(df_copy['extension'])
|
314 |
+
df_copy = df_copy.dropna(subset=['pitch_type'])#.fillna(0)
|
315 |
return df_copy
|
316 |
|
317 |
### PITCH COLOURS ###
|