Skip to main content

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.


Use pip to install:

pip install take-satisfaction


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 =,


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 =,


Which will result in 0.9715419806243273.


Take Data&Analytics Research - squad XD.

Project details

Download files

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

Files for take-satisfaction, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size take_satisfaction-1.0.0.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View
Filename, size take_satisfaction-1.0.0-py3-none-any.whl (13.9 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page