Tag: Python
-
Pre-commit Ruff Locks: Pin to CI or Accept 2-Week Drift
Fix pre-commit Ruff version conflicts by pinning to CI or accepting controlled drift. Compare both strategies and choose the right approach.
-
f-strings vs % Formatting: When Old Syntax Wins 2.1x Speed
Compare f-strings vs % formatting performance in Python. Discover why legacy syntax achieves 2.1x speed gains in specific scenarios you use daily.
-
Excel Pivot Tables to Pandas GroupBy: Migration Guide
Excel pivot tables break at 500MB. Pandas groupby handles 1M rows in 18ms. See the actual migration steps with messy data and real pitfalls.
-
Python GIL vs Free-Threading: 3.13t CPU Benchmark
Python 3.13t free-threading delivers 5.6x CPU speedup vs GILโbut single-threaded code is 17% slower. Real benchmark results and when to switch.
-
Pandas GroupBy 10x Faster: Map-Reduce for 100M+ Rows
Master Pandas GroupBy optimization with map-reduce patterns. Learn chunked processing and parallel techniques that handle 100M+ rows efficiently.
-
Recursion Stack Overflow: DFS Depth Limit & Iterative Fix
Fix recursion stack overflow in DFS algorithms with depth limits and iterative solutions. Learn practical fixes for deep tree traversal problems.
-
pip install Works, Production Breaks: Dependency Hell Fix
pip install succeeds, production crashesโhere's why dependency resolution isn't enough and how hash verification catches what pip misses.
-
logging vs loguru vs structlog: Speed & API Benchmarks
Compare logging, loguru, and structlog performance and APIs. Benchmark results reveal the fastest Python logger for production use.