Python, machine learning and analytics
Data science tutorials you can follow from start to finish.
Step-by-step guides built on code we run ourselves, with the real outputs, so you get the same results on your own machine.
Popular: pandas, SQL, XGBoost, TensorFlow, Power BI
342 real penguins, measured three ways
Drag to turn the chart. HoverTap a point for details.
New to data science? Start here
Four tutorials, in this order, take you from installing Python to your first model.
- Install Python and Jupyter Notebook
Set up everything you need in one sitting.
- Data manipulation with pandas
Load, filter, group and reshape tables.
- Clean and preprocess data
Missing values, duplicates and outliers.
- Your first model with scikit-learn
Train, test and evaluate a model.
Recently rewritten
Every one rebuilt around code we ran, with the real results.

Docker for data science: a reproducible ML project
Build and run a real image, get identical model results inside it, and cut rebuilds from 17.4 s to 0.6 s.

Apache Spark for big data analysis, with PySpark
541,909 real orders through DataFrames, SQL and query plans, and an honest test of when pandas is faster.

Time series analysis in Python, with real data
A seasonal forecast that works to within half a degree, and a stock forecast where yesterday’s price beats every model.

Analyze a real-world dataset with Python
1,035 exoplanets, half the masses missing, and why dropna() quietly changes the question you are answering.

Sentiment analysis with Python: VADER vs a trained model
Two approaches on 2,000 real movie reviews: 65% against 86% accuracy, and where both fail.

Exploratory data analysis in Python, step by step
A full EDA on 398 real cars, ending on a 10 mpg gap that mostly disappears once you control for weight.
Free data tools
A code playground, converters and calculators that run in your browser. Your data is never uploaded.
Learning paths
Pick a topic and work through it in order.
Python for data analysis
Beginner to intermediate
Machine learning
Intermediate
Deep learning
All levels
Data science by industry
How companies in different fields put data to work.
About Pulse Data Hub
We write practical tutorials on Python, machine learning and analytics. Every tutorial is built around code we run before publishing, so you can follow along and get the same results.
More about us →Get new tutorials by email
We send new guides when they are published. Unsubscribe anytime.
