staircase.StairsSlicer.min#
- StairsSlicer.min() float #
Calculates the min of each step function slice
- Returns
Examples
>>> df = sc.make_test_data(seed=0) >>> sf = sc.Stairs(df, "start", "end", "value") >>> sf.plot()
>>> sf.slice(pd.date_range("2021", periods=12, freq="MS")).min() [2021-01-01, 2021-02-01) 354.0 [2021-02-01, 2021-03-01) 338.0 [2021-03-01, 2021-04-01) 401.0 [2021-04-01, 2021-05-01) 437.0 [2021-05-01, 2021-06-01) 356.0 [2021-06-01, 2021-07-01) 344.0 [2021-07-01, 2021-08-01) 436.0 [2021-08-01, 2021-09-01) 426.0 [2021-09-01, 2021-10-01) 399.0 [2021-10-01, 2021-11-01) 434.0 [2021-11-01, 2021-12-01) 434.0 dtype: float64