def cumprod(x, axis=None):
 return CumOp(axis=axis, mode='mul')(x)

def cumprod ( x , axis = None ) : return CumOp ( axis = axis , mode = 'mul' ) ( x )
return the cumulative product of the elements along a given axis .