Spaces:
Sleeping
Sleeping
Update SQL
Browse files
SQL
CHANGED
|
@@ -1,18 +1,9 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
def clean_int_columns(table_name, df):
|
| 12 |
-
df = df.copy()
|
| 13 |
-
|
| 14 |
-
for col in INT_COLUMNS.get(table_name, []):
|
| 15 |
-
if col in df.columns:
|
| 16 |
-
df[col] = pd.to_numeric(df[col], errors="coerce").astype("Int64")
|
| 17 |
-
|
| 18 |
-
return df
|
|
|
|
| 1 |
+
DROP TABLE IF EXISTS statcast_event_core;
|
| 2 |
+
DROP TABLE IF EXISTS statcast_pitch_release;
|
| 3 |
+
DROP TABLE IF EXISTS statcast_plate_location;
|
| 4 |
+
DROP TABLE IF EXISTS statcast_batted_ball;
|
| 5 |
+
DROP TABLE IF EXISTS statcast_bat_tracking;
|
| 6 |
+
DROP TABLE IF EXISTS statcast_score_context;
|
| 7 |
+
DROP TABLE IF EXISTS statcast_fielding_context;
|
| 8 |
+
DROP TABLE IF EXISTS statcast_player_meta;
|
| 9 |
+
DROP TABLE IF EXISTS statcast_legacy_misc;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|