Against the Current
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
A nightly export hands you a CSV log far too large to fit in memory, delivered as an iterable that yields one line at a time with the header row first. Given a `column_name`, return the sum of that column's numeric values as a float. Rows whose value in that column is missing or does not parse as a number are skipped, and if `column_name` is not among the header cells the sum is `0.0`.
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