This question evaluates a candidate's ability to perform Python code review, covering readability, efficiency, edge-case handling, testing, and separation of concerns within a data-science pipeline.
Zoom interview code-review segment: interviewer shares three short Python functions used in a data-science pipeline.
Walk through the code line-by-line: what is each function doing and why? Identify at least three improvements (readability, efficiency, edge-case handling, testing, etc.).
Comment on naming, vectorization, docstrings, exception handling, and separating concerns.