staircase.Stairs.from_values#
- classmethod Stairs.from_values(initial_value: float = 0, values: pd.Series | None = None, closed: Literal['left', 'right'] = 'left') Stairs #
Construct
Stairs
frompandas.Series
.- Parameters
- initial_valuefloat, default 0
The value of the step function at negative infinity.
- values
pandas.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