Data Transformation and Processing Logic Questions

Implementing transformation logic: joins, aggregations, deduplication, pivoting/reshaping, and business-rule application over datasets. Covers writing correct and maintainable transformation code, handling edge cases in the transform layer, and preparing data for downstream consumption. Focuses on the logic of turning raw data into analytics-ready outputs.

EasyTechnical
40 practiced

Explain how NULL participates in SQL comparisons, joins, and aggregations, contrasting it with an empty string and with zero. Describe three common pitfalls this causes when joining or aggregating real data, and the standard techniques (COALESCE, explicit NULL checks, filtering) used to handle each.

MediumTechnical
34 practiced

A dataset has missing values scattered across several columns. Walk through how you would decide what to do about each column's missingness, and how you would document and communicate that decision to stakeholders who will consume the resulting dashboard or model.

EasyTechnical
41 practiced

Explain when to prefer a vectorized pandas operation over .apply or .map, and when a row-wise operation is still acceptable. Give a small example showing the kind of speedup you would expect from converting a row-wise transformation into a vectorized one.

MediumTechnical
34 practiced

Compare CSV, JSON, Parquet, and Avro as formats for data you are transforming and storing: schema support and evolution, compression, read/write performance for analytical queries versus streaming ingestion, and the small-files problem. Give concrete scenarios for when you would choose each. Separately: when reading many partitioned Parquet or ORC files, you discover the same column has an inconsistent type across files (e.g. integer in some, string in others) - explain how you would detect, reconcile, and prevent this in your transformation code.

MediumTechnical
38 practiced

Discuss the options for parallelizing a CPU-bound data transformation in Python: threading, multiprocessing, vectorized numpy/pandas operations, and moving to a distributed framework like Dask or Spark. Explain why Python's GIL limits threading for CPU-bound work, and the practical costs (serialization overhead, memory duplication) of multiprocessing. Provide a small code sketch of a multiprocessing-based approach that preserves input order in its output.

Unlock Full Question Bank

Get access to all 38 Data Transformation and Processing Logic interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.