Git Product home page Git Product logo

postgresql-etl's Introduction

PostgreSQL-ETL

PostgreSQL-ETL is an ETL project for an imaginary startup called Sparkify. This project create a database based on a star schema. There's 1 Fact table and 4 Dim tables.

All the raw data is stored in JSON Files. This project create an ETL pipeline to obtain all the information from JSON files with the help of pandas python library and insert the data into the database schema.

This app will allows the analytic team knows what songs are users listening to.

Prerequisites

All libraries you need to install. I recommend you to use pip install

  • psycopg2
  • ipython-sql
  • pandas
  • numpy

Getting Started

First of all, to run your ETL pipeline, we need to create the database. All the information about the database, create and insert statements you can find it in create_tables.py / sql_queries.py

python create_tables.py

This will use all the information specified in your create_tables.py file, like username, password, database, and queries etc. After that, will execute CREATE STATEMENTS for all your tables.

Now, it's time to execute your ETL pipeline.

python etl.py

This ETL pipeline obtain all the information from JSON files, and insert the data based on requisities for the project and analytic team itself. The data is procesed and filtered using pandas library which provide an amazing analytics functions to make sure that the data is ready to insert into the database.

All JSON files are located in data directory.

postgresql-etl's People

Contributors

kennycontreras 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.