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.