pandas.DataFrame.ffill

DataFrame.ffill(self: ~ FrameOrSeries, axis=None, inplace: bool = False, limit=None, downcast=None) → Union[~FrameOrSeries, NoneType][source]

Synonym for DataFrame.fillna() with method='ffill'.

Returns
%(klass)s or None

Object with missing values filled or None if inplace=True.