pandas.core.window.Rolling.apply

Rolling.apply(func, args=(), kwargs={})[source]

rolling function apply

Parameters:

func : function

Must produce a single value from an ndarray input *args and **kwargs are passed to the function

Returns:

same type as input