Data Science Tutorials
Learn data science and AI with step-by-step tutorials on the DataCamp blog. Master Python, SQL, machine learning, and build your own AI agents.
Discover categories
Training 2 or more people?Try DataCamp for Business
GGUF Format: A Complete Guide to Local LLM Inference
GGUF packages model weights, tokenizer data, and metadata into a single portable file. Learn how to choose the right quantization level and get started with Ollama.
Austin Chia
June 17, 2026
How to Speed Up Local LLMs with DFlash Speculative Decoding
Learn how to accelerate local Gemma 4 31B inference on a single RTX 4090 using DFlash speculative decoding and Flash Attention against a baseline setup.
Abid Ali Awan
June 17, 2026
Build a Real-Time Task Manager With FastHTML and MongoDB
A complete tutorial on using Python-native tools for async CRUD operations and HTMX interactivity.
Karen Zhang
June 16, 2026
Spring AI and Oracle Database: Giving Memory to an AI Agent
Stop your LLM from forgetting context. Learn how to build an AI agent with episodic, semantic, and procedural memory using Spring AI and Oracle Database.
Victor Martin
June 16, 2026
Cursor Automations: A Hands-On Guide to Always-On Coding Agents
Learn how to set up Cursor automations with this hands-on tutorial covering PR code review, scheduled cron tasks, tools and MCP configuration.
Brian Mutea
June 16, 2026
Kernel Density Estimation: From Theory to Practice
Kernel density estimation is a nonparametric method for estimating the shape of a data distribution without assuming a fixed model. Learn the formula, bandwidth selection, and hands-on implementation in Python and R.
Dario Radečić
June 16, 2026
How to Install MySQL: Guide for Windows, macOS, and Linux
Learn how to install MySQL on Windows, macOS, and Linux. Configure your server, secure it properly, and verify the installation step by step.
Allan Ouko
June 16, 2026
Logistic Regression Assumptions: What You Need to Check Before Modeling
A practical walkthrough of the assumptions behind logistic regression, the diagnostics that catch violations in Python and R, and the alternatives to reach for when the assumptions don't hold.
Dario Radečić
June 15, 2026
Spline Regression: A Practical Guide with Python & R
A practical guide to spline regression, covering how piecewise polynomials and knots model nonlinear relationships, the main spline types, and how to fit them in Python and R.
Dario Radečić
June 14, 2026
Generalized Linear Model (GLM): A Beginner's Guide to Theory and Code
A practical guide to GLMs - what they are, how their three components work together, and how to fit and interpret them in Python and R.
Dario Radečić
June 12, 2026
Overfitting vs. Underfitting: A Practical Guide to Model Diagnostics
A detailed walkthrough of overfitting and underfitting in machine learning, including how to identify each failure mode, why it happens, and how to fix it through the bias-variance tradeoff.
Dario Radečić
June 12, 2026
Zero-Shot Classification: How It Works and When to Use It
Learn what zero-shot classification is, how it works under the hood with NLI models, how it compares to few-shot and fine-tuning, and how to apply it with Hugging Face Transformers.
Dario Radečić
June 11, 2026