staircase.median

staircase.median(collection)

Takes a collection of Stairs instances and returns the median of the corresponding step functions.

Parameters
collectiontuple, list, numpy array, dict or pandas.Series

The Stairs instances to aggregate using a median function

Returns
Stairs

See also

staircase.aggregate, staircase.mean, staircase.min, staircase.max

Examples

../../_images/staircase-median-1.png