Flag feature columns whose names suggest data leakage. A column is suspicious when its lower-cased name contains any of the substrings target, label, future, outcome or post_.
Implement solve(columns).
Returns. Return a list of the suspicious column names in their original order. Return an empty list when none match.
Example 1
Input:
solve(['age', 'income', 'target_encoded', 'future_balance', 'city'])
Output:
['target_encoded', 'future_balance']
Example 2
Input:
solve(['Age', 'Plan', 'tenure'])
Output:
[]
No results yet
Run your code to check it against the examples, or submit to run every test.