Giter Club home page Giter Club logo

transactions-etl-dwh's Introduction

Features

This is a basic ETL pipeline for populating transactions data into a data warehouse, implemented in Jupyter Notebook.

  1. transactions-etl.ipynb: Using this simple pipeline, the data warehouse is populated from the transaction file. Contains stages for extraction, transfer, and loading
  2. transactions-task-tables: simple queries to view the tables
  3. transactions-task-reports: a data warehouse usage example

In the model folder, you will find a Star schema design with two different fact tables and dimensions for the data warehouse

Tech

  • Python3 (pandas, Jupyter notebook)
  • Postgres

Requirenments

  • Docker / Postgres installation
  • Python3
  • pip package manager

Setup

  1. Python dependencies All python dependencies can be install from requirenments.txt

    pip install -r requirements.txt
  2. Postgres install. Postgres can be used from a container. for example -

    docker pull postgres
    docker run --name postgresql -e POSTGRES_USER=myusername -e POSTGRES_PASSWORD=mypassword -p 5432:5432 -v /data:/var/lib/postgresql/data -d postgres
  3. From the project root, open jupyter notebook -

    jupyter notebook
  4. Update connection string url from -

    connection = sqlalchemy.create_engine(f'postgresql+psycopg2://[email protected]:5432/postgres')
    

    to your connection string

  5. Start with transactions-etl.ipynb file that create the data

I think that's it!

transactions-etl-dwh's People

Watchers

Shani Cohen 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.