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.

Pandas Pivot Table, Melt and Stack Explained
Reshape 144 monthly airline records with pivot, pivot_table, melt and crosstab, and see why duplicate rows break pivot.

T-Test vs Mann-Whitney U Test in Python, with Real Data
Run Welch and Mann-Whitney on real data, then simulate a case where one rejects 14.7% of the time and the other 5.1%.

Regression Diagnostics in Python: Residuals, VIF, Cook’s D
A linear model scores R² 0.706 on 392 cars, but residuals curve, variance grows, and unshuffled CV drops to 0.332.

k-Nearest Neighbors in Python: Scaling, Choosing k
Scaling lifts k-NN accuracy from 0.67 to 0.93 on wine data, and 200 noise columns drag it down to 0.73.

Text Preprocessing in Python: What Helps, Tested
Stop words, stemming and min_df tested on 2,000 reviews: vocabulary shrinks 59% but accuracy moves by about one point.

Correlation vs Causation in Python: A Real Data Example
Penguin bills correlate negatively overall and positively inside every species, and random walks look significant 76% of the time.
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 →Questions or corrections? Email info@pulsedatahub.com or call +880 1937-936006.
Get new tutorials by email
We send new guides when they are published. Unsubscribe anytime.
