Skip to content

Commit

Permalink
add note on bad pattern in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-ho committed Mar 21, 2024
1 parent 64005e3 commit d45ed7d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions daft/expressions/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ def concat(self, other: str) -> Expression:

def extract(self, pattern: str | Expression, index: int = 0) -> Expression:
"""Extracts the regex match group from each string in a string column. If index is 0, the entire match is returned, otherwise the specified group is returned.
If the pattern does not match or the group does not exist, a null value is returned.
Example:
>>> df = daft.from_pydict({"x": ["foo", "bar", "baz"]})
Expand Down

0 comments on commit d45ed7d

Please sign in to comment.