Giter Site home page Giter Site logo

data-quality-monitoring's Introduction

Table of Contents

  1. Objective
  2. Installation
  3. Data Creation
  4. API
  5. Data Extraction
  6. Transform Data
  7. App
  8. Potential next steps

Objective

  • Illustrate a small process of data engineering
    • Creation of fake data: stores that have several sensors to count visitors and send data hourly
    • API creation and API requests for Data extraction
    • Data transformation: creation of new stats (daily traffic, moving average for each weekday)
    • WebApp creation for data visualisation
    • Using workflows to check code syntax (black for PEP8)

Installation

  • Create a new virtual environment, using poetry, venv, conda
  • run pip install -r requirements.txt

Data Creation

  • The first part of this project is to create fake data
  • It should be requestable with an API
  • Fake data creation using numpy
  • Unit tests for Sensor and Store classes python tests/test_sensors.py python tests/test_store.py

API

  • Creation of an api with FastAPI
  • We create it to simulate the provider’s API, here the API is deployed locally.
  • To launch the api locally, run uvicorn app:app --reload

Data Extraction

The goal is to request the API to build our data. You must deploy the API locally before running the script.

Transform Data

  • Computation of the daily traffic by store
  • Computation of the moving average daily traffic for the same day of the week over the last 4 weeks
  • Computation of this moving average change from one week to the next
  • Export to parquet file

App

  • Creation of a streamlit webapp
  • Choice of a store and a sensor to display its data and barplots about its most recent stats.
  • Run the app using streamlit run app_streamlit.py

Potential next steps

  • Add alert if the value of a sensor is below a fixed threshold
  • Containerize the repo in a Docker container to run it on the cloud
  • Store the data on the cloud

data-quality-monitoring's People

Contributors

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