Karthik Menon
@karthik_menon • 5 months ago
Make it list the rules it will apply before it touches a single row.
signup_date mixes DD/MM/YYYY and YYYY-MM-DD. AMBIGUOUS: 03/04/2024 could be either. Rule: parse ISO first, treat the rest as DD/MM, flag rows where day <= 12.country has "UK", "U.K.", "United Kingdom". Rule: map to ISO-3166 alpha-2.revenue has 412 empty strings. AMBIGUOUS: empty vs zero. Rule: NULL, not 0.