Forward Fill with Limit - Quant Researcher Interview Question
Difficulty: Medium
Category: data_manipulation
Asked at: D.E. Shaw, Citadel, Two Sigma, AQR Capital Management, WorldQuant
Topics: pandas, preprocessing, time_series, data_cleaning
Problem Description
Forward filling is a standard preprocessing technique in financial time series analysis used to handle missing data caused by illiquidity or data feed interruptions. To prevent the propagation of stale pricing information into signal generation or risk models, practitioners often impose a limit on how many consecutive periods a last valid observation can be carried forward.
Task
Implement a function solution that performs a forward fill operation on a pandas DataFrame, propagating the last vali
Practice this medium researcher interview question on MyntBit - the LeetCode for quants with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.