staircase.Stairs.fillna

Stairs.fillna(value)

Define values for (a copy of) self where it is undefined.

Parameters
value{int, float, “backfill”, “bfill”, “pad”, “ffill”}

If value is and int or float, then it is used to provide values where self is undefined. If value is a string then it indicates a method for propagating values of the step function across undefined intervals:

  • pad / ffill propagate last defined value forward

  • backfill / bfill propagate next defined value backward

Returns
Stairs

See also

Stairs.isna

Examples

../../_images/staircase-Stairs-fillna-1.png
../../_images/staircase-Stairs-fillna-2.png
../../_images/staircase-Stairs-fillna-3.png