staircase.Stairs.from_values

classmethod Stairs.from_values(initial_value, values=None, closed='left')

Construct Stairs from pandas.Series.

Parameters
initial_valuefloat, default 0

The value of the step function at negative infinity.

valuespandas.Series

The step function values’ when approaching the change points from the right

closed{“left”, “right”}

Indicates whether the half-open intervals comprising the step function should be interpreted as left-closed or right-closed.

Returns
Stairs