Giter Site home page Giter Site logo

khoinguyen19k8 / tfl-cycling Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 1.11 MB

ETL pipeline that processes raw CSV data into Snowflake using Airflow + Databricks/Pyspark. Provision infrastructure with Terraform.

Dockerfile 0.72% Python 46.47% Jupyter Notebook 32.36% Shell 0.74% HCL 19.71%

tfl-cycling's Introduction

Overview

The project processes the public data provid by Transport for London, a local government body responsible for most of the transport network in London, United Kingdom. In particular, the project focuses on rented bicycles usage data from 2015 until 2022. It can be accessed here

Dataset Schema

Features Data type Descriptions
Rental ID Integer Unique rental ID
Duration Double Duration in seconds
Bike Id Integer Unique bike ID
End Date Timestamp The date where the bike is returned
EndStation Id Integer The ID of the end station
EndStation Name String The station name where the bike is returned
Start Date Timestamp The date where the bike is rented
StartStation Id Integer The ID of the start station
StartStation Name String The station name where the bike is rented

Raw dataset size: ~352 CSV - 10.4 GB.
RAW dataset record count: ~84.4 million rows.

Architectures

Below is a high-level description of the architecture. The pipeline checks for new data in the cycling.data.tfl.gov.uk bucket every month and loads new data into an S3 bucket. New data is then processed with Databricks + Pyspark then loaded into Snowflake. The project utilises Infrastructure as code (IaC) with Terraform to provision cloud infrastructure.

Alt text

Snowflake dashboard

A dashboard built in Snowflake. The dashboard has date range, date bucket, and a filter for start station name. Alt text

tfl-cycling's People

Contributors

khoinguyen19k8 avatar

Watchers

James Cloos 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.