Generate a rate between 0 and 1 for Resolution rate on smart contacts.
Project description
Take Resolution
This package proposes to offer a rate that represents the user resolution on the smart contact.
The proposal considers that users have resolution every time they receive a service provided by the smart contact. The rate is a value between 0 and 1 and as closer to 1, the better the rate is.
If the metric is:
- 1: all users receive had at least one resolution on the smart contact
- 0: all users didn't had at least one resolution on the smart contact
Installation
Use pip to install:
pip install take-resolution
Usage
Using a numeric scale Consumer Satisfaction Survey:
import pandas as pd
import take_resolution as tr
df = pd.DataFrame(
{"amount": [11198, 11310, 11164, 10571, 11277, 7903, 4968],
"DAUs": [13487, 13859, 12979, 12342, 17030, 9631, 6099]})
result = tr.run(dataframe=pd,
amount="amount",
dau_column="DAUs")
print(result["rate"])
Which will result in 0.7665976833542061
.
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
take_resolution-1.0.0.tar.gz
(5.8 kB
view details)
Built Distribution
File details
Details for the file take_resolution-1.0.0.tar.gz
.
File metadata
- Download URL: take_resolution-1.0.0.tar.gz
- Upload date:
- Size: 5.8 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.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1fdb234b06ec078e0d08ee0132650fea2e873a275fa52b14e627ddbf36f6c2bf |
|
MD5 | 625b7b3b0ab9f1d667f2980643393e63 |
|
BLAKE2b-256 | 97b0caf12e4794bdd7026a512889a4374891cd020dc4c4e3ee1690235e250600 |
File details
Details for the file take_resolution-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: take_resolution-1.0.0-py3-none-any.whl
- Upload date:
- Size: 8.0 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.8.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce2b579ab0f70c53fe7c4ed70dbf9770173563df27f7555801d98ab3685f53db |
|
MD5 | eb5a631992ba28f0d2ef9ec8401ba845 |
|
BLAKE2b-256 | 62ffa811056ab5206191a46bcbdb1b4acf359f6903b5ba7bde3d18b16129d986 |