Forward Fill with Limit - Quant Researcher Interview Question
Difficulty: Medium
Category: data_manipulation
Practice quant interview questions from top firms including Jane Street, Citadel, Two Sigma, DE Shaw, and other leading quantitative finance companies.
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 all-in-one quant learning platform with 200+ quant interview questions for Jane Street, Citadel, Two Sigma, and other top quantitative finance firms.