Giter Site home page Giter Site logo

crm_report's Introduction

Job description https://tomsk.hh.ru/vacancy/44904368?query=data%20analyst%5C

Test task https://docs.google.com/document/d/1OOgPhLCZgtEsqUt47nHAFqFmOvEEL949mwtB-hj8ODk/edit#

Dataset https://docs.google.com/spreadsheets/d/1Ycg7zTxds9DZnDvTrFcyNNKuTUxg6Yy6WF0a8Wc02WQ/edit#gid=0

Result report https://docs.google.com/spreadsheets/d/14fDZbjhGSCy6W6ph8-6nxpndWU2u0dZXNdaUJ0uYMM8/edit?usp=sharing

DataStudio report https://datastudio.google.com/reporting/92bcc7c9-04df-4833-8b8b-f7e52c26ae33

Cleaning steps

  • Filtered out transactions with negative and zero amounts (m_real_amount <= 0)
  • Empty d_utm_source set to "not set"
  • Added leading zeros in d_manager, "manager #9" -> "manager #09" (for representation purposes)
  • d_utm_source value "ycard#!/tproduct/225696739-1498486363994" replaced with "ycard"

Setup steps

# Create and load environment
conda create --name crm_report --file requirements.txt

# Activate environment
conda activate crm_report

# Loading source data from google spreadsheets to local csv files
python 01_fetch_spreadsheets.py

# Starting clickhouse server in docker
bash 02_start_clickhouse.sh

# Importing data into clickhouse database
bash 03_run_clickhouse_import.sh

# Calculate all the metrics
bash 04_process_data.sh

# Starting chproxy for clickhouse (Optional step)
bash 05_run_chproxy.sh

# Export of structured data into google spreadsheet
python 06_export_data.py

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.