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 GroupBy Explained with Real Health Data
One dataset, six countries: Japan gained 12.7 years of life expectancy, the USA 6.1, with a groupby for each step.

Outlier Detection in Python: IQR, Z-Score, Isolation Forest
On 53,940 diamonds, IQR and z-score caught all 23 impossible rows; Isolation Forest caught 11.

Imbalanced Data in Python: Class Weights vs SMOTE
A 4% rare class, five fixes compared, and the SMOTE leak that turns 0.64 into a fake 1.0.

Logistic Regression in Python: Odds Ratios on Real Data
Month-to-month contracts triple the odds of churn; the model reaches 0.835 AUC and its probabilities check out.

SQL Window Functions Explained with Real Queries
Running totals, rank vs dense_rank, LAG and NTILE, each run on a real SQLite database.

Train Test Split in Python: How Much Does It Matter?
100 splits of the same model: scores move by 0.035, and a leaky test set lifts a forest from 0.825 to 0.939.
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.
