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.

Python libraries for data science: a tested tour
One analysis across six libraries, plus real timings: NumPy is 19x faster than a loop, and polars was slower than pandas here.

Decision trees in Python: depth, pruning and rules
An unpruned tree scores 82.5% on new data; a pruned one 86.5% with 144 leaves instead of 6,317.

Linear regression in Python on real housing data
Anscombe’s warning, collinearity (VIF up to 36) and a capped target that biases the model by $99,000.

K-nearest neighbors in Python: scaling, k and noise
Scaling lifts accuracy from 69.9% to 96.2%; 200 noise columns drag it down to 75.9%.

Logistic regression in Python: a tested guide
Odds ratios, regularization and the threshold trade-off on 768 real patients.

Kaggle Titanic with Python: what actually moves the score
Seven feature sets, 25-fold cross-validation, and a submission file. A one-line rule scores 78.7%; the best model 83.7%.
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.
