Pandas Tutorial for Beginners: DataFrames, Filtering, and GroupBy
Load a CSV into a DataFrame, clean it, filter rows, add columns, and summarize with groupby, using a…
Category
Practical Python for engineering work. Language fundamentals, tooling, testing, concurrency, data, web APIs, and AI features.
34 articles
Load a CSV into a DataFrame, clean it, filter rows, add columns, and summarize with groupby, using a…
An LLM predicts the next token, over and over. Learn tokens, context windows, temperature, and embeddings through small…
Linters find bugs and formatters end style debates. Compare Ruff, Black, flake8, isort, and pylint, and copy a…
Find the slow line before you change anything. Use cProfile, line_profiler, and py-spy to locate the hotspot, then…
Build typed ORM models, manage sessions and transactions, query with select(), and count your queries to catch the…
Run one benchmark and see the GIL for yourself: threads speed up waiting, processes speed up computing. Learn…
Learn how the event loop runs coroutines, how tasks and TaskGroup give you concurrency, and how to handle…
Python 3.11 is faster, points at the exact expression that failed, and adds exception groups, TaskGroup, and tomllib.…
Go from a first assert to fixtures, parametrized cases, temporary files, environment patching, and coverage, with complete files…
Nine logging practices ranked by impact, each with a wrong example, a right example, and a way to…
A layout that works from the first commit: src directory, one pyproject.toml, an installable package, tests, and a…
Type hints document what your code expects, and mypy checks them before anything runs. Learn the syntax, the…
A decorator wraps a function to add behavior such as timing, retries, or caching. Learn how they work,…
Catch specific exceptions, keep the original cause with raise from, and let context managers handle cleanup. A practical…