RFM Customer
Segmentation Analysis
Marketing wants to know who their best customers are. You'll bring data into Python, compute Recency / Frequency / Monetary features per customer, define segments the marketing team can actually act on, and ship the analysis as a GitHub portfolio piece. Real database, real ambiguity, real deliverables.
What you'll learn
- —Bring data from a production database into pandas via SQLAlchemy
- —Translate a vague business question into RFM features
- —Define and defend customer segments numerically
- —Communicate segment-level recommendations to non-technical readers
- —Ship a portfolio-grade GitHub repo with notebooks + findings + README
After this project
What you'll be able to claim — credibly — once your repo is shipped.
Roles you can credibly apply to
Keywords on your resume after this
Interview questions you'll be ready for
- 01Walk me through how you'd build customer segments from raw transaction data.
- 02What does RFM tell you that ranking customers by total spend doesn't?
- 03Your top segment is 8% of customers but 42% of revenue — what's the marketing implication?
- 04How would you handle the case where 50% of customers are one-time buyers — does RFM still work?
- 05If a CFO challenged your segment definitions, how would you defend them?
The 5 milestones
Each milestone is reviewed before you advance.
- 01
Set up your project repo
Before any analytical work: create a public GitHub repository, push the standard skeleton, and paste the URL into your workspace.
- 02
Get the lay of the land — in pandas
Bring the ecommerce data into Python and form a first-pass understanding of who the customers are.
- 03
Build the RFM features
Compute Recency, Frequency, and Monetary features per customer, and analyze how each is distributed.
- 04
Score and segment
Assign RFM scores and group customers into actionable segments.
- 05
Pull it together for your portfolio
Curate four milestones into a portfolio piece a recruiter can read in five minutes.
Reading & references
Build your portfolio & get certified
Want more projects like this? Join our Data Analyst Work Experience Program to complete 5+ guided industry projects, gain real experience, and earn an internship certificate.