DataDriven
LearnPracticeInterviewDiscussDailyJobs

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

  1. Read the vague prompt (just like a real interview)
  2. Ask clarifying questions to the AI interviewer
  3. Write your python solution with real code execution
  4. Get instant feedback and a hire/no-hire decision

Related

  • All Mock Interviews
  • Practice Mode (untimed)
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Practice Problems
  • Daily Challenge