Loading...
The Forward Fill
A easy Python interview practice problem on DataDriven. Write and execute real python code with instant grading.
- Domain
- Python
- Difficulty
- easy
- Seniority
- junior, mid
Problem
Our analytics pipeline ingests sensor readings that occasionally drop to None during network hiccups. The downstream dashboard can't render gaps, so it needs a clean version of the stream. Write a function that takes the raw readings and produces a patched list where every gap has been filled in.
Practice This Problem
Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.