Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

take-resolution

Package Overview
Dependencies
Maintainers
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

take-resolution

Generate a rate between 0 and 1 for Resolution rate on smart contacts.

  • 1.0.0
  • PyPI
  • Socket score

Maintainers
3

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc