Code Monkey home page Code Monkey logo

data-warehouse-divvy's Introduction

Azure Data Warehouse for Divvy

Divvy is a bike sharing program in Chicago. As part of Udacity's nanodegree on Data Engineering with Microsoft Azure, we developed a dimensional data model for Divvy and set up an ETL pipeline to extract, transform and load Divvy's data into an Azure Synapse data warehouse.

Project

The aim of the project was to implement a data warehouse solution for Divvy's data with Azure Synapse Analytics.

Business Requirements

The given business requirements were as follows:

  1. Analyze how much time is spent per ride

    • Based on date and time factors such as day of week and time of day
    • Based on which station is the starting and / or ending station
    • Based on age of the rider at time of the ride
    • Based on whether the rider is a member or a casual rider
  2. Analyze how much money is spent

    • Per month, quarter, year
    • Per member, based on the age of the rider at account start
  3. Analyze how much money is spent per member

    • Based on how many rides the rider averages per month
    • Based on how many minutes the rider spends on a bike per month

Approach

  1. Develop a dimensional model to fit Divvy's BI needs
  2. Extract Divvy's data from a Postgres database on Azure into an Azure blob storage.
  3. Load the data into Azure Synapse workspace
  4. Transform the data into the designed data model with Transact-SQL

Designed data model: Alt text The data was extracted into Azure blob storage: Alt text

The scripts used to load and transform the data can be found in the scripts folder.

Data

Divvy is a bike sharing program in Chicago, Illinois USA that allows riders to purchase a pass at a kiosk or use a mobile application to unlock a bike at stations around the city and use the bike for a specified amount of time. The bikes can be returned to the same station or to another station. The City of Chicago makes the anonymized bike trip data publicly available for projects like this where we can analyze the data.
โ€” Udacity

Below, you can find the an ERD of the initial data model. Alt text

data-warehouse-divvy's People

Contributors

infer742 avatar

Watchers

 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.