Giter Club home page Giter Club logo

nps-calculator's Introduction

NPS-calculator

NPS calculator is a tool to calculate Net promoter score of any business/service.

Net Promoter Score helps understand customer satisfaction of any kind of business. It all starts by asking only one question to the customer which is "On a scale from 0 to 10, how likely are you to recommend this product/company to a friend or colleague?".

So, all the ratings as answers are accumulated from the customer and NPS is calculated by applying the formula:

  NPS = % Promoters - % Demoters

%Promoters: The percentage of customers who has given rating above 8.

%Demoters: The percentage of customers who has given rating below 7.

net-promoter-score-1

To calculate NPS, I have used a simple package from python which is numpy and a well known concept of Numpy arrays which is 'Masking'.

It hardly took 6-7 lines of code to calculate NPS. Below are the steps for calculating the same.

* Importing numpy library #Please install numpy if it is not installed.

* Loading ratings data from a text file.

* Calculating total number of customers.

* Calculating Promoters and Demoters percentages.

* Finally, putting everything in NPS formula.

Some insights which can be drawn from the NPS.

* If the NPS is below 30, then the business is not doing well and the services/products by the company are very poor.

* If the NPS is 50, then the business is doing good.

* If the NPS is 50+, then the business is doing extremely good and their customer satisfaction is very high.

Here is the link for the streamlit application which was developed to calculate NPS.

https://nps-calculator.onrender.com/

All you need to provide a text file with only ratings as shown in the sample.txt file.

NPS-2

nps-calculator's People

Contributors

kavetishivanjali avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.