Skip to content
Sharp

Data Cleanup · interview question

What does a strong engineer do when reasoning through normalization pipelines code?

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

C. Narrate the data shape, the state changes, and the exact rule order step by step.

Why

Interviewers often use simple code to test whether you can reason through execution without bluffing.

Test yourself on Data Cleanup

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

Start free test
All Data Cleanup questions →