forwardfill
Forward fill, often abbreviated as ffill, is a data imputation technique used to replace missing values in a sequence by propagating the most recent non-missing value forward through subsequent gaps. It is also known as last observation carried forward (LOCF) and is widely used in time series, data cleaning, and analytics workflows.
Forward fill is appropriate when missing values are assumed to be the same as the last observed
The method relies on the order of observations. Starting from the beginning, keep track of the last
Forward fill can apply to numeric and categorical data, carrying forward the previous category or value. It
Related techniques include backward fill (filling with the next valid observation), interpolation (estimating values between known