def replace ( table , field , a , b , * * kwargs ) : return convert ( table , field , { a : b } , * * kwargs )
replacing values of a column using functions python
Convenience function to replace all occurrences of a with b under the given field . See also : func : convert .
def replace(table, field, a, b, **kwargs):
    """
    Convenience function to replace all occurrences of `a` with `b` under the
    given field. See also :func:`convert`.

    The ``where`` keyword argument can be given with a callable or expression
    which is evaluated on each row and which should return True if the
    conversion should be applied on that row, else False.

    """

    return convert(table, field, {a: b}, **kwargs)