/images/avatar.jpg

Customer Profiling & Segmentation with Python (Source code)

The sample data and analysis code used in this article are from Kaggle. However, because the actual running results are different from original author, there are slight differences in the analysis part.

The specific analysis process includes:

  1. Data Preparation
  2. Data Cleaning
  3. Data Visualization
  4. Data Processing
  5. Cluster Analysis
  6. Customer Profiling and Segmentation

1. Data Preparation

Use the KMeans clustering algorithm to divide the data into K clusters:

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
import numpy as np
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
from pandas import get_dummies
from sklearn.cluster import KMeans
from sklearn.preprocessing import StandardScaler, LabelEncoder
from yellowbrick.cluster import KElbowVisualizer

import warnings
warnings.filterwarnings('ignore')

ModuleNotFoundError: No module named ‘yellowbrick’

yellowbrick-error

14 Best Mind Mapping Software for Mac in 2024 (Features, Pros, Cons, Pricing)

The capacity to efficiently organize ideas, thoughts, and tasks is more important than ever in today’s fast-paced and increasingly complicated work contexts. With its visual and user-friendly approach to brainstorming, planning, and collaboration, mind mapping applications have become indispensable tools for professionals in a wide range of industries.

There is a mind mapping tool designed specifically for your needs and workflows, whether you operate as a project manager managing complex initiatives, a software developer designing fresh solutions, an educator molding young minds, or a creative professional realizing creative ideas.

12 Best Read-It-Later App in 2024 (Features, Pros, Cons, Pricing)

The sheer amount of worthwhile and fascinating stuff available can be debilitating. It feels like there is never enough time to stay on top of everything, from important research papers and compelling podcasts to thought-provoking essays and must-read newsletters.

This is where apps that let you read anything later come in handy, providing a lifesaver for people who are overwhelmed by information. These apps, which are made to store content for later use, not only assist in managing your digital to-do list but also improve your reading experience by including features catered to different requirements and tastes.

13 Best Habit Tracker App in 2024 (Features, Pros, Cons, Pricing)

Healthy habits are more important than ever for achieving both personal and professional progress in today’s fast-paced world. Selecting the best habit tracker app might be overwhelming due to the large number of options available. There is an app for every type of user, be it a data enthusiast who wants to examine every aspect of your progress, a gamer who wants to add a playful element to work, or someone who wants to make routine creation simple. This article examines the top habit tracker applications in a variety of categories, including information on their salient characteristics, advantages, disadvantages, and role-fitness. Find the ideal app to help you on your path to improved habits and increased productivity, whether you’re a minimalist or a gamification enthusiast.

5 Best Text Expansion Tool in 2024 (Features, Pros, Cons, Pricing)

In the quest for peak productivity, text expansion tools are the unsung heroes for professionals across the board. By turning shortcuts into fully formed text, these tools save time and reduce tedium, no matter your field. This article dives into the top text expansion tools, customized for various roles, to help you work smarter, not harder.

The best text expansion tools for 2024 at a glance

Free trial timePricingSupported platformIntegrationAI feature
TextExpander30 daysStart from $3.33/month per userWeb, Windows, Mac, iOS, Android
Espansofree (open-source)-Windows, Mac, Linux
aText21 daysStart from $4.99/year per individualWindows, Mac
Writesonic Sentence Expanderfree forever (Free version)Start from $12/month per individualBrowser, Windows, Mac, iOS, Android
PhraseExpress21 daysStart from $83Windows, Mac, iOS

1. TextExpander

15 Best Calendar Sharing App in 2024 (Features, Pros, Cons, Pricing)

Time management and organization are more important than ever in the fast-paced world we live in today. Choosing the correct calendar sharing tool may greatly simplify your scheduling demands, whether you’re a busy professional arranging meetings, a student juggling classes and assignments, a project manager managing teams, or a mom organizing family events.

This post seeks to assist you in choosing the ideal app that fits your lifestyle and increases productivity out of the plethora of possibilities accessible, each meeting distinct functions and needs. Find the perfect solution to maintain a stress-free and organized life, from family organizers to expert scheduling tools.