Skip to content

Commit

Permalink
add .gz to csv filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Dec 25, 2024
1 parent bd98c7a commit e0b428d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataload/08_run_queries/csvs_to_sqlite.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def main():

conn = sqlite3.connect(args.out_sqlite_path)

for csv in glob.glob("*.csv"):
for csv in glob.glob("*.csv.gz"):
df = pd.read_csv(csv)
df.to_sql(csv.replace(".csv", ""), conn)

Expand Down

0 comments on commit e0b428d

Please sign in to comment.