SagarPatel98/Customer-Segmentation-using-Machine-Learning ? reverse-engineered prompt

Reverse engineered prompt

Build me a customer segmentation notebook for a retailer using the purchase data in the Files folder.

I want the whole flow from loading and cleaning the data, to exploring it, to creating customer groups with clustering. Please make it easy to follow and show the important steps clearly, since this is for an unsupervised learning project. The model should group customers using both their overall buying behavior and the kinds of items they purchase, then help me understand what each segment looks like.

Please include sensible data analysis, feature preparation, choosing the number of clusters, running K means, and simple visuals that make the segments easy to explain. If there are missing values or messy columns, handle that too. At the end, show how to read the clusters in a way that a business person could understand.

Use the notebook file in this repo and keep everything self contained. If you need to check anything from current docs or best practices, go ahead and look it up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab