ML & Data Science
TutorialPython · Data Cleaning7 Pandas One-Liners That Replace 20 Lines of Data Cleaning
Seven vectorized pandas one-liners that replace dozens of lines of manual cleaning code, with copy-paste examples.
Ibrahim Denis Fofanah·Jul 10, 2026·3 min
Benchmark WatchBenchmark Watch · ML & Data Sciencepandas vs Polars vs DuckDB on 3.5 Million Taxi Rides. DuckDB Won Every Query, and the Timings Were the Least Interesting Part.
I ran pandas, Polars, and DuckDB through the same 3.5M-row NYC taxi CSV on a 7GB box. DuckDB won every query and used half the memory of pandas, but the most useful finding was a CSV parsing gotcha, not a timing.
Ibrahim Denis Fofanah·Sep 29, 2026·6 min
Deep DiveML & Data Science · Deep DiveGradient Boosting Still Rules Tabular Data. The Foundation Models Are Gaining Ground.
Four years after a 45-dataset benchmark crowned gradient-boosted trees on tabular data, tabular foundation models (TabPFN, LimiX-2, NVIDIA's Kumo Tabular) are topping leaderboards. What the 2022 verdict got right, where it no longer holds, and how to choose your next tabular model.
Ibrahim Denis Fofanah·Oct 5, 2026·13 min
TutorialData Engineering · ReliabilityYour Pipeline Passed. Your Dashboard Is Still Wrong.
A green pipeline only proves the code ran. This practical guide shows how contracts, freshness checks, semantic tests, lineage, and safe promotion catch schema drift before it corrupts a dashboard.
Ibrahim Denis Fofanah·Sep 11, 2026·7 min
- TutorialModel Evaluation · Time Series
Your Train-Test Split Is Leaking the Future
A random split can make a forecasting model look excellent by training on records that occur after its test rows. Here is how to build a time-aware evaluation that rehearses production instead of leaking the future.
Ibrahim Denis Fofanah·Sep 7, 2026·10 min
- ExplainerML & Data Science · Under the Hood
Reasoning Models Explained: What Test-Time Compute Actually Costs You
Letting a model think longer is a real capability (DeepSeek-R1 lifted AIME accuracy from 15.6% to 71.0%) and a real bill you pay in tokens and latency on every query. When it is worth paying, and when it is not.
Ibrahim Denis Fofanah·Aug 11, 2026·7 min
ExplainerData Thinking · Part 1The First Question Every Data Scientist Asks: What Does One Row Represent?
A falling average order value triggered a discount review. The arithmetic was right and the table was wrong. Why the grain of a table decides whether every metric built on top of it is true.
Ibrahim Denis Fofanah·Jul 23, 2026·12 min
Policy BriefRegulation in Force · Policy BriefThe EU AI Act Is Already Enforcing. The Deadline Everyone Watched Was the One That Moved.
The enforcement machinery is running: chatbot disclosure, synthetic-content marking, GPAI documentation demands, and a US state banning algorithmic grocery pricing.
Ibrahim Denis Fofanah·Oct 8, 2026·12 min
TutorialData Engineering · ReliabilityYour Retry Worked. That Is How You Got Two Rows.
Retries fix transient failures, but they can also duplicate payments, records, and side effects. Here is how idempotency keys, unique constraints, and atomic writes make retries safe.
Ibrahim Denis Fofanah·Sep 25, 2026·8 min
TutorialFrom Notebook to Production · ML & Data ScienceFive Leaks That Inflate Your AUC: I Measured Each One
Five controlled experiments, one per leak: honest AUC vs leaky AUC on the same data-generating process. Target leakage bought +0.16, pre-split feature selection +0.26, repeat groups +0.15.
Ibrahim Denis Fofanah·Oct 19, 2026·11 min
- ExplainerFrom Notebook to Production · Part 2
Serving a Model: Endpoint, Batch, or Embedded?
Three ways to serve a model, endpoint, batch, or embedded, and the one question that decides which. Most people default to the always-on endpoint. It is the priciest and most fragile option, and usually the wrong one.
Ibrahim Denis Fofanah·Aug 8, 2026·7 min
- TutorialData Thinking · Part 3
Before You Clean Your Data, Ask This One Question: Is It Actually Dirty?
A lender's income field was 23% empty, and the gap turned out to be the best feature in the dataset. Three mechanisms behind missing data, four diagnostics that tell them apart, and why cleaning is a provenance problem in disguise.
Ibrahim Denis Fofanah·Jul 28, 2026·12 min