h2o-py/h2o/frame.py
def sub(self, pattern, replacement, ignore_case=False):
        """
        Substitute the first occurrence of pattern in a string with replacement.

        :param str pattern: A regular expression.
        :param str replacement: A replacement string.
        :param bool ignore_case: If True then pattern will match case-insensitively.
        :returns: an H2OFrame with all values matching ``pattern`` replaced with ``replacement``.
        """
        return H2OFrame._expr(expr=ExprNode("replacefirst", self, pattern, replacement, ignore_case))
def sub(self, pattern, replacement, ignore_case=False):
        return H2OFrame._expr(expr=ExprNode("replacefirst", self, pattern, replacement, ignore_case))
def sub ( self , pattern , replacement , ignore_case = False ) : return H2OFrame . _expr ( expr = ExprNode ( "replacefirst" , self , pattern , replacement , ignore_case ) )
Substitute the first occurrence of pattern in a string with replacement.

        :param str pattern: A regular expression.
        :param str replacement: A replacement string.
        :param bool ignore_case: If True then pattern will match case-insensitively.
        :returns: an H2OFrame with all values matching ``pattern`` replaced with ``replacement``.
Substitute the first occurrence of pattern in a string with replacement .