Giter Club home page Giter Club logo

udacity_data_engineering_capstone's Introduction

Udacity Data Engineering Capstone

In this project I plan to use I94 immigration dataset and US city demographic dataset to make a small size data warehouse for analyzing the immigrants coming to United State.

I will adopt Kimball's dimensional modelling technique to make analytic tables for those two datasets. The analysis will starts with identifying the business process requirements, to extract and load the datasets into postgres database, then I will model the fact and dimension tables for further analysis.

The primary tools I used in this project are python, sql and dbt. I use python to script the extraction and loading parts of the ELT workflow, for the data transformation I mainly use sql and dbt in conjunction with airflow to do the workflow scheduling.

ERD

erd diagram

File Structure

Capstone Project.ipynb: Main entry point for the project, including write up

data_sources: source input files

db: postgres db docker startup file for testing, useful if spun up local database

dbt_udacity_capstone: dbt working directory

city_profiling.html & immi_profiling.html: raw table profiling files

create_raw_tables.py: for creating initial raw table structures in postgres

requirements.txt: python dependencies

How to run the project

  1. To spin up local database container at port 5434, RDBMS admin site at port 8082.
docker compose up -d
  1. Create python virtualenv, then install python dependencies.

    pip install -r requirements.txt
    
  2. Create raw table structures.

    python create_raw_tables.py
    
  3. Run the commands in Capstone Project.ipynb file to extract and load raw data into postgres.

  4. Use dbt to run data modeling pipelines, before that need to configure database credentials in .dbt/profile.yml

    cd dbt_udacity_capstone
    dbt run
    dbt test
    dbt docs generate
    dbt docs serve
    

udacity_data_engineering_capstone's People

Contributors

renshou753 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.