Skip to content
Sharp

Data Cleanup · interview question

A bug appears around normalization pipelines. What is the strongest first debugging move?

Multiple choiceMediumchapter-4-curatedpremiumdata-cleanupnormalization-pipelines
python
def normalize_row(row: dict[str, str]) -> dict[str, object]:
    return {
        "sku": row["sku"].strip(),
        "quantity": int(row["quantity"]),
    }
Choose one answer
Answer and explanation

Correct answer

D. Trace one concrete example, inspect the state transitions, and compare them to the intended rule before rewriting anything.

Why

That approach is reliable because it creates evidence. Trying to clean everything in one dense transformation step makes root causes harder to recover.

Test yourself on Data Cleanup

A free test with instant, explained results. No account needed.

Start free test
All Data Cleanup questions →