← The arcade

Data Wrangling · difficulty 2 of 3

Fill the gaps 🕳️

A sensor dropped readings. Fill them two ways: carry the last value forward, and linearly interpolate between the known points. Notice what interpolation cannot do at the end.

This one is part of Pro. Plenty of arcade challenges are free to play right now.

Skills: dicts, lists, files

Open the arcade