/bigquery-pipeline

End-to-end batch data pipeline

Primary LanguagePython

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