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 forwardbackfill / bfill
propagate next defined value backward
- Returns
Stairs
See also
Examples