SpinTheMic
Pro

Interview practice question

Mixed date formats in source data

Data Engineering · Python · Beginner

A date column contains values like 2026-11-12, 12/11/2026 and 12-Nov-2026. How do you parse it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Identify all formats present first.
  • Parse with explicit formats, trying each in order.
  • Day-month vs month-day ambiguity needs a business decision.
  • Log and quarantine values that match no format.
  • Push the source to send ISO 8601 dates.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics