Calculate Net Promoter Score in Python

Calculate Net Promoter Score in Python

The Net Promoter Score is obtained by asking your customers to rate, 0-10, how likely they would recommend your company or product to a friend or colleague. It’s pretty trivial to calculate (one reason why it’s so popular). Here’s my python implementation.