Diagnosing and Fixing Stratification Problems in scikit‑learn train_test_split
A diagnostic guide to identify and resolve stratification problems when using scikit‑learn's train_test_split, with version checks, memory considerations, and pipeline safety tips.