Customer Analytics with Python Training Course

Duration 10 days 20 modules · 65 contact hours
Level Intermediate Certificate on completion
Who attends Data Analysts, Customer Insights Analysts and others
Fee from USD 2,200 KSh 190,000 for Kenyan organisations
Where 52 cities + online See dates by city
Next start 16 Nov 2026 Course code SD-DA-077

Before you join: Participants should be comfortable working with spreadsheets or tabular datasets and should understand basic business metrics such as revenue, conversion rate and customer retention.

Dates & prices

Two start dates a month in every city, and live online on weekdays or weekends. Fees are per participant; classroom fees include tuition, materials, lunch and refreshments, and the certificate.

Suggest a date or city

Showing the next six months. Later dates, other cities and private deliveries for your team are available on request.

Course overview

Customer data is often spread across transaction systems, CRM platforms, web analytics, support records and campaign files. Analysts must turn these sources into decisions about retention, acquisition, cross-sell, service priority and customer value. This requires more than reporting: it requires defensible customer definitions, well-structured data, appropriate metrics, statistical reasoning and clear communication of findings to commercial and service teams.

This course teaches participants to use Python for customer analytics from data preparation through segmentation, cohort analysis, churn modelling, customer lifetime value estimation and campaign measurement. Participants work with pandas, NumPy, scikit-learn and Plotly to build repeatable analytical workflows. They learn to profile customer data, join records at customer level, create behavioural features, assess data quality, select evaluation metrics and explain model results without overstating certainty. The course also addresses consent, privacy, bias and model monitoring requirements relevant to customer data.

Teaching combines short technical briefings, instructor demonstrations, guided case work, group analysis and individual build time. Cases reflect common commercial settings such as retail banking, telecoms, subscription services, e-commerce and membership organisations. Participants progressively develop a customer analytics project during the course and finish by presenting a complete analysis containing data preparation logic, segment definitions, retention findings, model evaluation and recommended actions.

The course suits analysts and customer-facing professionals who already work with data and need a structured Python-based method for producing customer insight that marketing, product, sales and service teams can use.

What you will be able to do

  • Prepare customer-level analytical datasets using pandas joins, cleaning rules and feature engineering
  • Calculate retention, churn, cohort and customer lifetime value metrics from transaction data
  • Segment customers using RFM analysis, behavioural features and clustering methods
  • Build and evaluate churn prediction models using scikit-learn classification workflows
  • Measure campaign performance using control groups, uplift metrics and attribution assumptions
  • Interpret model outputs using confusion matrices, ROC curves, feature importance and calibration
  • Apply privacy, consent, fairness and data-quality controls to customer analytics work
  • Present a customer analytics recommendation supported by reproducible Python analysis

Benefits of attending

For you

  • Produce customer segments that can be used for targeting and service prioritisation
  • Build a portfolio-quality churn analysis in Python
  • Explain customer lifetime value assumptions to commercial stakeholders
  • Assess predictive model quality without relying on accuracy alone
  • Create reusable Python notebooks for recurring customer analysis

For your organisation

  • Improve retention prioritisation through evidence-based churn risk identification
  • Create consistent customer segments across marketing, sales and service teams
  • Reduce manual reporting through reusable Python data preparation workflows
  • Strengthen campaign decisions with measured incremental performance evidence
  • Improve governance of customer data, model assumptions and analytical outputs

Course modules

20 modules over 10 days

Participants can frame customer analytics questions around specific commercial and service decisions.

  • Customer analytics use cases across acquisition, retention, service and growth decisions
  • Decision statements translated into measurable customer, campaign and channel questions
  • Unit of analysis choices for customers, households, accounts and transactions
  • Customer lifecycle stages mapped from first contact through reactivation
  • Leading and lagging indicators for customer behaviour and commercial outcomes
  • Analytical hypotheses structured using populations, interventions, outcomes and timeframes

Participants can structure a reproducible Python project for customer analytics work.

  • Jupyter notebooks organised with inputs, transformations, outputs and documented assumptions
  • Python environments managed through virtual environments and requirements files
  • pandas, NumPy and Plotly imported using standard analytical conventions
  • Project folders separate raw data, processed data, notebooks and reports
  • Functions reduce repeated cleaning and metric calculation code
  • Random seeds recorded for repeatable sampling and model results

Participants can import customer datasets and diagnose their analytical fitness.

  • CSV, Excel and Parquet files loaded with pandas readers
  • Data types checked for identifiers, dates, categories, currency and quantities
  • Missingness profiles calculated by field, customer segment and reporting period
  • Duplicate customer records identified using keys, names and contact attributes
  • Frequency tables reveal invalid categories, rare values and coding inconsistencies
  • Descriptive statistics expose implausible values and extreme transaction amounts

Participants can clean customer records and create a reliable customer-level dataset.

  • Primary keys assessed for uniqueness, stability and cross-system coverage
  • Standardised dates, currencies and categorical values prepared for analysis
  • Missing values treated through business rules, imputation or exclusion
  • Customer records joined using one-to-one, one-to-many and many-to-many relationships
  • Entity resolution rules reconcile duplicate names, emails and account identifiers
  • Data quality logs document corrections, exclusions and unresolved exceptions

Participants can identify meaningful patterns in customer activity and value.

  • Distribution plots compare purchase frequency, order value and engagement measures
  • Customer activity analysed by channel, product, geography and acquisition source
  • Time-series charts identify seasonality, growth patterns and anomalous periods
  • Cross-tabulations reveal behavioural differences between customer groups
  • Percentiles distinguish typical customer value from high-value tail behaviour
  • Outlier treatment decisions preserve legitimate premium customer activity

Participants can calculate consistent customer metrics from event and transaction data.

  • Active customer definitions specify qualifying events and observation windows
  • Acquisition, activation and repeat-purchase rates calculated from customer histories
  • Average order value separated from revenue per active customer
  • Retention rate formulas distinguish gross retention from net revenue retention
  • Churn definitions account for contractual, behavioural and voluntary attrition
  • Metric dictionaries record formulas, exclusions, refresh frequency and owners

Participants can build cohort tables and interpret retention patterns over time.

  • Acquisition cohorts assigned using first purchase, signup or activation dates
  • Retention matrices calculated by cohort age and calendar period
  • Revenue cohorts separate customer survival from spending behaviour
  • Heatmaps reveal retention differences across acquisition periods and channels
  • Survival curves show probability of remaining active over time
  • Cohort findings converted into onboarding, service and reactivation questions

Participants can create interpretable customer segments using recency, frequency and monetary value.

  • Recency calculated from each customer's most recent qualifying transaction
  • Frequency windows selected to reflect purchase cycles and product cadence
  • Monetary value defined using revenue, margin or contribution measures
  • RFM scores assigned with quantiles, fixed thresholds and business rules
  • Segment labels distinguish loyal, promising, at-risk and dormant customers
  • Segment profiles compare value, behaviour, channel preference and retention

Participants can create customer-level features suitable for segmentation and prediction.

  • Transaction histories aggregated into customer-level behavioural feature tables
  • Purchase intervals calculated to represent regularity and recency patterns
  • Channel mix features quantify digital, branch, call-centre and partner usage
  • Product breadth measures capture cross-sell depth and portfolio concentration
  • Engagement features combine sessions, opens, clicks and service interactions
  • Feature windows prevent future information entering historical prediction datasets

Participants can develop and assess clustering-based customer segments.

  • Feature scaling prepares monetary, frequency and ratio variables for clustering
  • K-means clustering groups customers by multidimensional behavioural similarity
  • Elbow plots and silhouette scores inform cluster number selection
  • Cluster profiles compare value, needs, engagement and attrition indicators
  • Principal component analysis supports visual inspection of cluster separation
  • Business usability tests determine whether clusters support differentiated actions

Participants can estimate customer lifetime value using transparent commercial assumptions.

  • Historical customer value calculated from revenue, margin and service costs
  • Discounted cash flow estimates incorporate contribution margin and discount rates
  • Retention assumptions linked to observed cohort and survival patterns
  • Simple CLV models distinguish contractual from non-contractual customer relationships
  • Acquisition cost compared against expected lifetime contribution by segment
  • Sensitivity analysis tests value estimates under alternative retention assumptions

Participants can define a churn prediction problem with valid labels and observation periods.

  • Prediction targets distinguish cancellation, inactivity and revenue decline outcomes
  • Observation windows separate available predictors from future churn labels
  • Positive and negative classes checked for imbalance and label reliability
  • Business intervention windows determine useful prediction lead time
  • Train, validation and test periods preserve chronological data order
  • Baseline rules establish comparison points before machine learning models

Participants can train baseline and supervised churn classification models in Python.

  • Logistic regression provides interpretable baseline churn probability estimates
  • Decision trees identify nonlinear risk patterns and actionable splits
  • Random forest models capture interactions among behavioural customer features
  • scikit-learn pipelines combine preprocessing, modelling and evaluation steps
  • Class weights address imbalanced churn outcomes without discarding observations
  • Hyperparameter searches compare candidate models using validation data

Participants can evaluate churn models against operational costs and intervention capacity.

  • Confusion matrices quantify true positives, false positives and missed churners
  • Precision and recall assessed against campaign capacity and contact costs
  • ROC-AUC compared with precision-recall curves for imbalanced classification
  • Probability calibration checks whether predicted risk matches observed churn
  • Decision thresholds selected using expected value and intervention constraints
  • Lift charts rank customers by concentration of churn risk

Participants can assess campaign results using suitable comparison groups and metrics.

  • Campaign funnels measure delivery, response, conversion and downstream value
  • Control groups estimate incremental outcomes beyond natural customer behaviour
  • Randomised test design addresses selection bias in campaign evaluation
  • A/B test results interpreted using confidence intervals and practical significance
  • Uplift metrics compare treatment performance against control group outcomes
  • Attribution assumptions documented for multichannel customer journeys

Participants can select simple recommendation approaches for cross-sell and content personalisation.

  • Recommendation objectives distinguish relevance, conversion, margin and customer experience
  • Popularity models provide transparent baselines for product recommendation
  • Content-based filtering matches customer preferences with product attributes
  • Collaborative filtering uses similar customer behaviour for recommendations
  • Cold-start problems affect new customers, products and sparse datasets
  • Offline evaluation uses precision at k and recall at k

Participants can communicate customer findings through clear visual and written narratives.

  • Chart selection matches comparison, distribution, trend and relationship questions
  • Plotly charts add filters, hover details and stakeholder-ready annotations
  • Segment dashboards combine size, value, risk and recommended treatment
  • Executive narratives state decision, evidence, uncertainty and proposed action
  • Model explanations distinguish correlation, prediction and causal claims
  • Recommendations prioritised by expected value, feasibility and implementation ownership

Participants can apply governance controls to customer analytics datasets and models.

  • Purpose limitation defines permitted uses of customer personal data
  • Consent status and lawful basis recorded for analytical data use
  • Data minimisation removes unnecessary identifiers from analytical datasets
  • Protected characteristics assessed for unfair segment or model effects
  • Model documentation records data sources, assumptions, performance and limitations
  • Monitoring plans detect drift, degraded accuracy and changed customer behaviour

Participants can plan how customer analysis will become a repeatable operational process.

  • Analytical workflows scheduled around data refreshes and decision cycles
  • Data pipelines specify source systems, transformations, checks and outputs
  • Segment refresh rules maintain stable customer treatment definitions
  • Model monitoring dashboards track performance, drift and intervention outcomes
  • Stakeholder handoffs assign ownership for actions, exceptions and feedback
  • Implementation roadmaps sequence quick wins, dependencies and measurement milestones

Participants can build, review and present a complete customer analytics project with actionable recommendations.

  • Business question defined with target customers, decisions and success measures
  • Customer dataset cleaned, joined and documented using reproducible Python code
  • Segments, cohorts and value metrics developed from behavioural features
  • Churn or campaign analysis evaluated with appropriate business metrics
  • Governance risks, assumptions and limitations reviewed before stakeholder presentation
  • Final recommendations prioritised with owners, timing and measurement criteria

Exercises and examples are adapted to each cohort's sectors and roles.

What you take back to work

  1. Customer analytics Python notebook template
  2. Customer data quality checklist
  3. RFM segmentation model
  4. Cohort retention analysis template
  5. Churn model evaluation scorecard
  6. Customer analytics implementation plan

Who should attend

  • Data Analysts — build repeatable customer insight and predictive analysis in Python
  • Customer Insights Analysts — convert behavioural data into segments, retention actions and recommendations
  • CRM Analysts — improve targeting, lifecycle measurement and customer value analysis
  • Marketing Analysts — assess campaign audiences, conversion results and incremental impact
  • Business Intelligence Analysts — extend dashboard reporting with customer-level statistical analysis
  • Product Analysts — identify adoption, engagement and attrition patterns from customer behaviour

Skills and tools covered

Customer data preparationRFM segmentationChurn modellingCohort analysisCampaign measurementPython visualisation

Tools and standards

Python, pandas, scikit-learn, Plotly

How the course runs

Training methodology

The course uses short instructor briefings followed by demonstrations in Python, structured case work and guided group exercises. Participants work with realistic customer transaction, CRM and campaign datasets, progressively building analytical notebooks during the first week. The second week concentrates on predictive modelling, measurement, governance and communication. Facilitated reviews compare modelling choices, assumptions and business implications. Participants also prepare an application plan for transferring the methods to their own customer data, reporting routines and stakeholder decisions.

Requirements and prerequisites

Participants should be comfortable working with spreadsheets or tabular datasets and should understand basic business metrics such as revenue, conversion rate and customer retention. Prior exposure to Python is expected at the level of variables, lists, loops, functions and reading CSV files. Participants should also be able to interpret simple charts and percentages. Prior experience with pandas, machine learning, SQL, statistics software or customer data platforms is not required. The course introduces the necessary statistical concepts and Python libraries, but it is not suitable for complete programming beginners.

A typical training day

08:30 – 10:30First session
10:30 – 10:45Refreshment break
10:45 – 12:30Second session
12:30 – 13:30Lunch and networking
13:30 – 15:00Third session
15:00 – 15:15Refreshment break
15:15 – 16:30Workshop and daily review

Live online deliveries follow the same structure in East Africa Time, with shorter screen blocks and longer breaks.

What the fee includes

  • Instruction by a practitioner facilitator
  • Full course workbook and materials
  • Exercise files, templates and case studies
  • Refreshments and lunch on classroom deliveries
  • Certificate of completion
  • Post-course application plan

Frequently asked questions

You should be able to read basic Python code and understand variables, lists, loops, functions and CSV files. You do not need prior experience with pandas, scikit-learn, machine learning or statistical programming.

Bring a laptop capable of running a current Python environment and Jupyter notebooks. Installation guidance and the course datasets are provided before the course; participants may also bring non-sensitive examples of their own data questions.

It is designed for analysts working in customer insight, CRM, marketing, product, business intelligence, sales operations or service analytics. It also suits professionals moving from spreadsheet-based customer reporting into Python analysis.

The course uses Python specifically for customer decisions, including cohort retention, RFM segments, customer lifetime value, churn and campaign incrementality. Machine learning is taught as one part of a customer analytics workflow rather than as an isolated technical subject.

Participants can adapt the notebooks and templates for recurring customer reporting, segment refreshes, retention analysis and campaign reviews. The capstone structure also provides a practical format for proposing a customer analytics project to stakeholders.

The first week establishes Python workflows, customer data preparation, descriptive analysis, cohorts and segmentation. The second week covers lifetime value, churn models, campaign measurement, governance, operationalisation and a final capstone presentation.

Questions about this course?

Ask about dates, fees, group bookings or running it for your team. Our training team replies by email.