From the course: Customer Insights and Consumer Analytics for Organizations: Tools and Analysis

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Customer segmentation with Python

Customer segmentation with Python

From the course: Customer Insights and Consumer Analytics for Organizations: Tools and Analysis

Start my 1-month free trial

Customer segmentation with Python

- [Instructor] In this video, I'll walk you through a cluster analysis using Python to identify how customers might organize themselves into different groups. This can help you to know what messages are working, which products are driving customer experience, or a whole range of different scenarios. Sometimes, you might want to visualize these groups based on some pre-established label, so let me show you this first. I've already loaded in the packages that we're going to need for this demonstration, as well as the data itself. So what we're going to do is to create a subset of the data, and organize it into a Pandas DataFrame. This is a two-dimensional tabular data structure, so we can do that this way. We'll say x equals pd.DataFrame, and then parentheses, and we'll assign it our data, ci_data, and then we'll assign it this specific column set we want to use here. So in this case, we're going to assign it purchase_sum and experience, and let's go ahead and run that. So in…

Contents