Generate a rate between 0 and 1 for Consumer Satisfaction Survey.
Project description
Take Satisfaction
This package proposes to offer a rate that represents the customer satisfaction research from the bot.
The proposal converts the Customer Satifaction Survey (CSS) to a normalized rate between 0 to 1. The normalized value alow the comparasion of CSS from differents bot that have differents scales types and ranges.
Installation
Use pip to install:
pip install take-satisfaction
Usage
Using a numeric scale Consumer Satisfaction Survey:
import pandas as pd
import take_satisfaction as ts
pdf = pd.DataFrame({"Action": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
"amount": [0, 1, 2, 0, 0, 10, 0, 35, 200, 360, 3330]})
result = ts.run(dataframe=pdf,
scale_column="Action",
amount_column="amount")
print(result["rate"])
Which will result in 0.9761300152361605
.
Using a textual scale Consumer Satisfaction Survey:
import pandas as pd
import take_satisfaction as ts
pdf = pd.DataFrame(
{"Action": ["Péssimo", "Ruim", "OK", "Ótimo", "Excelente"],
"amount": [0, 1, 35, 350, 3330]})
css_column = "Action"
amount = "amount"
result = ts.run(dataframe=pdf,
scale_column=css_column,
amount_column=amount)
print(result["rate"])
Which will result in 0.9715419806243273
.
Author
Take Data&Analytics Research - squad XD.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file take_satisfaction-1.0.0.tar.gz
.
File metadata
- Download URL: take_satisfaction-1.0.0.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2820db6ffab8c475575ec67a53a0219c8b89b79261efc83bc9d32b566107996 |
|
MD5 | 494f63d69a86932820ebf516c968cd0f |
|
BLAKE2b-256 | b63c751f3289d880a0151153a6a6c0771390336577fc4491d766bfb309208293 |
File details
Details for the file take_satisfaction-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: take_satisfaction-1.0.0-py3-none-any.whl
- Upload date:
- Size: 13.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.54.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | da70432f004060cbad4b037c564f735477beb814da97da0cbc24c546f7a5b7b8 |
|
MD5 | c7bc834a5744465c07061d9c8312c508 |
|
BLAKE2b-256 | e26275e784c139a8e8e89efa2c3165df9e86956d460e31c070afde8fb78036b1 |