Code Monkey home page Code Monkey logo

data_modeling's Introduction

Fetch Rewards Coding Exercise

After cloning the directory into the local machine, to successfully execute code follow these steps.

On terminal execute the following commands

Create and activate python virtual environment

python3 -m venv fetch_analytics
source fetch_analytics/bin/activate

Install required packages

pip install -r requirement.txt

To read the json file, process the data, transform into the pandas dataframe and insert the data into the database run this script. Type this command on the terminal

python3 script.py

This will execute the script and perform the necessary operations to read the json file, process the data, and insert it into the database.

The transformation of the raw data is done in transformations.py. This acts like a transformation layer.

Packages used in the assignments are given in requirement.txt

fetch_database.db is a sqlite database generated in script.py. All the modeled datasets are stored in this database.

The data qualities issues are found by performing EDA on the dataset using python notebook. Serves the third requirement of the assignment Third: Evaluate Data Quality Issues in the Data Provided.

Folder structure

data folder

Tis directory contains the raw data in a json file

  1. brands.json
  2. receipts.json
  3. users.json

sql folder

This folders has all the sql transformations done the datasets while solving the exercise. These SQl queries serves as the answers to the question asked in the Second: Write a query that directly answers a predetermined question from a business stakeholder

writeup

  1. Entity Relation Diagram

This is a simplified, structured, relational diagram to represent how I would model the data in a data warehouse and servers as solution for First: Review Existing Unstructured Data and Diagram a New Structured Relational Data Model

  1. email_stakeholders.md

A short slack message composed for the business stakeholders. Servers as an answer for Fourth: Communicate with Stakeholders

  1. sql_queries.md

Details of the SQL queried and more information on the queries

data_modeling's People

Contributors

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