DataDriven
LearnPracticeInterviewDiscussDailyJobs

Against the Current

A hard Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
hard
Seniority
L5

Problem

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.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a real environment and grades it automatically.

Related

  • All Practice Problems
  • Mock Interview Mode
  • Python Interview Questions
  • Data Engineering Interview Prep Guide
  • Daily Challenge
  • Data Engineering Lessons