def expanding_apply(arg, func, min_periods=1, freq=None, args=(), kwargs={}):
 return ensure_compat('expanding', 'apply', arg, freq=freq, min_periods=min_periods, func_kw=['func', 'args', 'kwargs'], func=func, args=args, kwargs=kwargs)

def expanding_apply ( arg , func , min_periods = 1 , freq = None , args = ( ) , kwargs = { } ) : return ensure_compat ( 'expanding' , 'apply' , arg , freq = freq , min_periods = min_periods , func_kw = [ 'func' , 'args' , 'kwargs' ] , func = func , args = args , kwargs = kwargs )
generic expanding function application .