AI Trap of the Week · Review & hallucination · spotter
The plausible-looking pandas import
An AI assistant wrote this ETL helper. It imports cleanly in the assistant's preview, but you haven't run it yet.
import pandas as pd
from pandas.helpers import dedupe_keys
def dedupe(df: pd.DataFrame, keys: list[str]) -> pd.DataFrame:
keys = dedupe_keys(keys)
return df.drop_duplicates(subset=keys, keep="last")Should you merge this?
◆ Past traps
Review & hallucination · spotter
The flaky test "fix"
Try it →Context engineering · tricky
The "timezone-aware" fix that isn't
Try it →Tool / agent / security · spotter
The "safer" migration flag
Try it →