# Leaky Features and Duplicate Rows

Asking "when is this known?" of every column finds the ones filled in only after the outcome, and a table that lists the same subscriber twice puts them on both sides of a row-by-row split, where a tree recognized them and scored 0.843 instead of an honest 0.814, so leaky columns are dropped and the rows are split by subscriber with GroupKFold or GroupShuffleSplit.

![Cheat sheet: Leaky Features and Duplicate Rows](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/c8fe0022bc3e404fb0205705e7fbc0f8.webp)

- Category: Machine Learning
- Level: Freelancer
- Tags: ai, Duplicate Row, duplicated(), GroupShuffleSplit, python, Target Leakage
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/ml-leaky-features-and-duplicates-cheat-sheet
