Amity
Archives — Reconstruct Missing Data
“Mind the gaps—smooth seas, smooth series.” — Harbor IT
Challenge:
Fill missing timestamps by averaging neighboring values.
Data Clinic • Interpolation
Task:
Implement
fill_missing_timestamps(data)
which modifies and returns the same list.
For each
None
in the list (guaranteed to have numeric neighbors), replace it with the average of the nearest numeric left & right values.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
def fill_missing_timestamps(data): # Your code here return data # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...