Skip to main content

Customer Analytics Package

Project description

https://img.shields.io/pypi/v/zenq.svg https://img.shields.io/travis/nareabg/zenq.svg Documentation Status

CLV package

  • Free software: MIT license

Installation

To install Zenq CLV Models Library, simply run the following command:

pip install zenq-clv-models

The Story

In order to provide marketing analysts and data scientists with a useful tool, the ZENQ package was developed. Because it is connected to a database, our product can be utilized by a wider variety of customers, including those who have a limited understanding of coding. Users are able to run scripts derived from the ZENQ package while the package works on data pertaining to customers. The data may be inserted into the database by users. It gives users the ability to study the behaviors of consumers based on how they engage with the company. Computations of CLV and RFM, in addition to forecasts, are the primary objective of the package. It features a Machine Learning component that makes an assumption as to whether the client will “die” or still be alive after a certain amount of time has passed. For the purpose of developing assumptions about the customers’ loyalness, ZENQ relies on the Pareto/NBD model. Because the package offers a number of different visualizations, it simplifies the process of comprehending the statistics and basing business decisions on those findings.

Usage - Simple Example

Once installed, you can use the library in your Python scripts as follows:

#run in terminal for postgres url creation
docker run --name my-postgres-db -e POSTGRES_USER=master -e POSTGRES_PASSWORD=pass -e POSTGRES_DB=GLOBBING -p 5432:5432 -d postgres
# Initialize database with tables
 from zenq.api.prepare_db import db
 m=db()
 m.main()
# Insert data into database
from zenq.api.endpoints import insert_facts
insert_facts('globbing.csv', 'Customer', 'Gender', 'InvoiceId', 'Date', 'Product_weight', 'Product_price')
# Insert data of logging into LOGS table
from zenq.api.endpoints import update_log
update_log()
#define model
 from zenq.clvmodels.pareto import Model
 model = Model()
 cltv = model.cltv_df()
 rfm = model.rfm_score()
 parameters = model.model_params()
 alive = model.customer_is_alive()
#define Visualizations
from zenq.visualizations.plot import Visuals
gender_price = visuals.gender_price()

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

zenq-0.1.0.tar.gz (22.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

zenq-0.1.0-py2.py3-none-any.whl (17.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file zenq-0.1.0.tar.gz.

File metadata

  • Download URL: zenq-0.1.0.tar.gz
  • Upload date:
  • Size: 22.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.8

File hashes

Hashes for zenq-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9a86e602bac6ac23da2edf0f7dcd5a881b071c2ad4c237fcf130a36a974bdb5b
MD5 3d8096a8bce55f0563b3f2f5f9c732f8
BLAKE2b-256 b155f3e0428efd23b7f0b8532858a974140ee17242e5f1c1082783167998a30a

See more details on using hashes here.

File details

Details for the file zenq-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: zenq-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.8

File hashes

Hashes for zenq-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a4b3c005c50abf98c0f4c6e73f45ecba15778636ae3f6c353b1c454abb15e1be
MD5 615172e18bf67aeda345aab4bfcff80b
BLAKE2b-256 7e1eb868c0a214137b4c7760ee79a305b2cfe1b310b7731822ede86553250928

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page