Stream-Process a Large CSV
A hard Python mock interview question on DataDriven. Practice with AI-powered feedback, real code execution, and a hire/no-hire decision.
- Domain
- Python
- Difficulty
- hard
- Seniority
- L5
Interview Prompt
Given an iterable of CSV lines (each line a string, no trailing newline) and a column name, stream the iterable lazily and return the sum of numeric values in that column. The first line is the header. Skip rows whose target-column value is missing or not numeric. Return a float. Process row-by-row without materializing the whole iterable in memory.
Summary
Too big to load. Read what you can.
How This Interview Works
- Read the vague prompt (just like a real interview)
- Ask clarifying questions to the AI interviewer
- Write your python solution with real code execution
- Get instant feedback and a hire/no-hire decision