polars.Series.forward_fill#

Series.forward_fill(limit: int | None = None) Series[source]#

Fill missing values with the last non-null value.

This is an alias of .fill_null(strategy="forward").

Parameters:
limit

The number of consecutive null values to forward fill.