No description
This repository has been archived on 2026-04-20. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
  • Jupyter Notebook 100%
Find a file
2024-02-26 16:14:00 +00:00
.github update pr template 2023-12-06 13:23:57 +00:00
data refactor and docs 2024-01-08 13:32:50 +00:00
docs refactor and docs 2024-01-08 13:32:50 +00:00
models refactor and docs 2024-01-08 13:32:50 +00:00
notebooks Updating stonegate file delivery script 2024-02-14 13:16:26 +00:00
scripts restructure 2024-01-08 13:40:23 +00:00
.gitignore adding git ignore 2024-02-01 11:11:36 +00:00
readme.md readme.md 2023-11-23 14:49:46 +00:00
requirements.txt adding code for stonegate unmatched txns 2023-12-19 16:01:22 +00:00

Welcome to SnowDrops

Project SnowDrops is BINK's Data Science, Advanced Analytics, and Machine Learning Project.

This repository is owned by the Data Product Team, and is used to perform advanced analytics such as:

  • End of Campaign Analytics for Retailers
  • Data Experimentation
  • Develop ML Models
  • Advanced Statistical Analytics

Installation

Firstly, ensure Python3 and Git are installed on your system. Then clone the repository:

git clone {SSH/URL}

Then proceed to set up the env.py file with your snowflake connection

import snowflake.connector

# Connecting to Snowflake using the default authenticator
conn = snowflake.connector.connect(
    user="USERNAME",
    password="PASSWORD",
    account="PROD URL",
    warehouse="WAREHOUSE",
    database="DATABASE",
    schema="SCHEMA"
)

Finally, create the venv and install the reuqirements via the below command:

python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt

And from here you are ready to use the repository.

Usage

This repository is a collection of jupyter notebooks fed via snowflake connector to our data warehouse.

As such, you will need to activate the python shell as above and ensure all dependancies are active.

We also recommend you install the Jupyter Notebooks Plugin for VSCode or use a specific Data Science IDE such as Jetbrains Dataspell

Activate the kernal using the GUI on any notebook, and proceed to run all cells to resume working or review a report.

Contributing

Please ensure that you follow the below steps to contribute to this repository.

If you have installed new dependancies to the venv, then run the below command:

pip freeze > requirements.txt

This will allow other Data Scientists to install these dependancies

Next, when creating a new .ipynb file, please create a branch, and open a pull request to add this to the master branch.

Ensure all complex functions or ML models are well documented.