diff --git a/.vscode/settings.json b/.vscode/settings.json index 236981053..ca20f9585 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -17,7 +17,6 @@ "files.autoSave": "afterDelay", "screencastMode.onlyKeyboardShortcuts": true, "terminal.integrated.fontSize": 18, - "workbench.activityBar.visible": true, "workbench.colorTheme": "Visual Studio Dark", "workbench.fontAliasing": "antialiased", "workbench.statusBar.visible": true diff --git a/data/nyc_parking_violations.db b/data/nyc_parking_violations.db index 19e587528..6f7381f81 100644 Binary files a/data/nyc_parking_violations.db and b/data/nyc_parking_violations.db differ diff --git a/data/prod_nyc_parking_violations.db b/data/prod_nyc_parking_violations.db index 9a2bd4ad7..d18d09ffc 100644 Binary files a/data/prod_nyc_parking_violations.db and b/data/prod_nyc_parking_violations.db differ diff --git a/nyc_parking_violations/models/bronze/bronze_parking_violation_codes.sql b/nyc_parking_violations/models/bronze/bronze_parking_violation_codes.sql index 217a5f263..54c83c55c 100644 --- a/nyc_parking_violations/models/bronze/bronze_parking_violation_codes.sql +++ b/nyc_parking_violations/models/bronze/bronze_parking_violation_codes.sql @@ -1,7 +1,7 @@ SELECT - code AS violation_code, - definition, - manhattan_96th_st_below, - all_other_areas + code AS violation_code, + definition, + manhattan_96th_st_below, + all_other_areas FROM - parking_violation_codes + parking_violation_codes \ No newline at end of file diff --git a/nyc_parking_violations/models/example/ref_model.sql b/nyc_parking_violations/models/example/ref_model.sql index 9bb4f51c6..5e2267bb8 100644 --- a/nyc_parking_violations/models/example/ref_model.sql +++ b/nyc_parking_violations/models/example/ref_model.sql @@ -1,4 +1,4 @@ SELECT COUNT(*) -FROM - {{ref('first_model')}} + FROM + {{ref('first_model')}} \ No newline at end of file diff --git a/nyc_parking_violations/profiles.yml b/nyc_parking_violations/profiles.yml index cabe18c54..f3216ce7b 100644 --- a/nyc_parking_violations/profiles.yml +++ b/nyc_parking_violations/profiles.yml @@ -1,12 +1,9 @@ nyc_parking_violations: outputs: - dev: - type: duckdb - path: '../data/nyc_parking_violations.db' - prod: - type: duckdb - # note that path is slightly different as GitHub actions - # start in the root directory and not in the - # nyc_parking_violations directory - path: './data/prod_nyc_parking_violations.db' - target: dev \ No newline at end of file + dev: + type: duckdb + path: '../data/nyc_parking_violations.db' + prod: + type: duckdb + path: './data/prod_nyc_parking_violations.db' + target: dev diff --git a/run_sql_queries_here.ipynb b/run_sql_queries_here.ipynb index f7c54e6c9..d1ec2252e 100644 --- a/run_sql_queries_here.ipynb +++ b/run_sql_queries_here.ipynb @@ -2,7 +2,7 @@ "cells": [ { "cell_type": "code", - "execution_count": null, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -12,17 +12,212 @@ }, { "cell_type": "code", - "execution_count": null, + "execution_count": 3, "metadata": {}, - "outputs": [], + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + " | count_star() | \n", + "
---|---|
0 | \n", + "97 | \n", + "
\n", + " | registration_state | \n", + "ticket_count | \n", + "
---|---|---|
0 | \n", + "NJ | \n", + "9258 | \n", + "
1 | \n", + "PA | \n", + "3514 | \n", + "
2 | \n", + "FL | \n", + "2414 | \n", + "
3 | \n", + "CT | \n", + "1787 | \n", + "
4 | \n", + "GA | \n", + "840 | \n", + "
... | \n", + "... | \n", + "... | \n", + "
57 | \n", + "AB | \n", + "1 | \n", + "
58 | \n", + "BC | \n", + "1 | \n", + "
59 | \n", + "NB | \n", + "1 | \n", + "
60 | \n", + "PE | \n", + "1 | \n", + "
61 | \n", + "SK | \n", + "1 | \n", + "
62 rows × 2 columns
\n", + "