def cummax(expr, sort=None, ascending=True, unique=False,
           preceding=None, following=None):
    return _cumulative_op(expr, CumMax, sort=sort, ascending=ascending,
                          unique=unique, preceding=preceding,
                          following=following)