Coder Social home page Coder Social logo

bigquery-pipeline's Introduction

Weather Forecasts Batch Data Pipeline

BigQuery pipeline is an implementation of an end-to-end batch data pipeline which runs in a weekly manner. It ingests the latest weather forecasts data from MetaWeather API, loads that data to Google BigQuery and finally produces weather insights via a dashboard.

The pipeline was built using Python; Pandas; BigQuery API; Heroku CLI; Google Data Studio

Table of Contents

Architecture diagram

diagram

How it works

Data pipeline ↗️

  • Extract: call location endpoint to get the current weather of a city and 5 days forecast
  • Transform: do some transformations like: renaming columns, changing data types, and generate a new date dimension table from the date column
  • Load: load the final weather data and the generated dimension to bigquery

Additional work

Running project

First, you should setup your google service account permission and create the required tables using BigQuery UI

Then clone this repo and run the pipeline

pip install -r requirements.txt

python main.py

Final results

Dataset

dataset

Dashboard

dashboard

References

bigquery-pipeline's People

Contributors

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