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.

Gradient boosting from scratch in Python
Build gradient boosting in 15 lines, match scikit-learn, then tune it on real car data.

Build a data dashboard with Python and Streamlit
A filterable dashboard on 62,984 real CFPB complaints, with charts and a test you can run.

Hadoop for big data analysis, with Python
What Hadoop is, then a real MapReduce job you can run on a web server log without a cluster.

Data science vs machine learning, on one dataset
The same 6,433 taxi rides, first analysed to explain tipping, then used to predict fares.

How to use APIs to collect data with Python
Requests, JSON, rate limits and pagination, ending with a real dataset of 300 GitHub repositories.

The dark side of big data, tested in Python
32% of people in an anonymous census dataset are one of a kind, and deleting a column does not remove bias.
Free data tools
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.
