Level Based Persona and Segmentation

Rule-Based Classification

In this article, we will do a simple rule-based segmentation study using only pandas functions without using machine learning.

We will create new customer definitions (level-based persona) by using the user information we have and the information about the purchases made by the users. Then, we will try to predict which segment a new person will be with these customer definitions we created.

Persona can be defined as examining characteristic information obtained from different sources and the emergence of the ideal customer profile in light of this information. We can say that persona is actually an analysis process.

What is Customer Profiling?

Customer profiling is primarily gathering all the information you can about people you want to sell products/services to, and grouping these potential customers together by categories. It is more than your general “target market” because you take the time to understand your customers.

  • You will get better conversions

Business Problem:

A game company wants to create level-based new customer definitions (personas) by using some features of its customers, creating segments according to these new customer definitions, and estimating how much the new customers can earn on average according to these segments.


  • Price: Customers spending amount.

For all the codes, you can check my repo.

Data Science Enthusiast — For more information check out my LinkedIn page here: www.linkedin.com/in/berkayihsandeniz