├── .devcontainer/
│ ├── devcontainer.json
│ └── Dockerfile
├── .github/
│ └── workflows/
│ └──cicd.yml
├── .mylib/
│ ├── extract.py
│ ├── query.py
│ └── transform_load.py
├── .gitignore
├── visuals
├── requirements.txt
├── Makefile
├── README.md
├── main.py
└── test_main.py
This project aims to create a basic ETL pipeline by connecting to SQLite and performing simple SQL queries on a fivethirtyeight data on births from 2000-2014 incuding the number of births reported everyday across the years ([E] Extract a dataset from URL, [T] Transform, [L] Load into SQLite Database and [Q] Query For the ETL-Query lab)
Code:
cursor.execute("SELECT * FROM birthData")
print(cursor.fetchall())
Code:
cursor.execute("INSERT INTO birthData VALUES ('2014','11','11','1','11')")
Code:
cursor.execute("UPDATE birthData SET births = '1000' WHERE day_of_week = '1';")
Code:
cursor.execute("DELETE FROM birthData WHERE year = '2000';")