polars.Series.backward_fill#

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

Fill missing values with the next non-null value.

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

Parameters:
limit

The number of consecutive null values to backward fill.