https://github.com/rytsh/clvmarket
Customer lifetime value calculation on supermarket
https://github.com/rytsh/clvmarket
customer faker lifecycle
Last synced: about 1 month ago
JSON representation
Customer lifetime value calculation on supermarket
- Host: GitHub
- URL: https://github.com/rytsh/clvmarket
- Owner: rytsh
- Created: 2019-04-07T13:03:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-08T19:57:56.000Z (over 6 years ago)
- Last Synced: 2025-09-02T13:54:12.798Z (about 1 month ago)
- Topics: customer, faker, lifecycle
- Language: Jupyter Notebook
- Size: 115 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Customer Analytics [ CLV SuperMarket ]
__Eray Ates, Sibel Gurbuz__
This is an example CLV project for Customer Analytics lesson by Assoc.Prof.Dr. Başar ÖZTAYŞİ.
Before to run python, execute this command
```shell
sudo pip install -r requirements
```For debug put this in where you want
```python
import ipdb; ipdb.set_trace()
```## Create MySQL DB
For create database run this command with your username and password.
```shell
mysql -u -p < DB/migrosdb.sql
```Generate ER diagram with eralchemy use this command, if you don't have eralchemy install from pip
```shell
eralchemy -i mysql+mysqlconnector://muser:muser@localhost:3306/Migros -o erd_from
_sqlite.pdf
```## Add fake values in it
Please edit __config.json__ file for authentication to database and fake data settings.
```shell
python fill.py
```## Check analysis on jupyter notebook page
```shell
calculateCLV.ipynb
```