staircase.Stairs.layer
staircase.Stairs.to_dataframe
Staircase is built upon Grant Jenks' Python Sorted Containers. Please consider financial support for that project:
Give to Python Sorted Containers
Stairs.
step_changes
Returns a dictionary of key, value pairs of indicating where step changes occur in the step function, and the change in value
See also
Stairs.number_of_steps()
Examples
>>> s1.plot() >>> s1.step_changes() {1: 1, 2: -1, 3: 1, 4: -2, 5: 1}