Skip to content

Commit

Permalink
[DOCS] Improve .str.concat docs (#1887)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaychia authored Feb 15, 2024
1 parent 1ac53c9 commit 7973b32
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions daft/expressions/expressions.py
Original file line number Diff line number Diff line change
Expand Up @@ -705,6 +705,13 @@ def split(self, pattern: str | Expression) -> Expression:
def concat(self, other: str) -> Expression:
"""Concatenates two string expressions together
.. NOTE::
Another (easier!) way to invoke this functionality is using the Python `+` operator which is
aliased to using `.str.concat`. These are equivalent:
>>> col("x").str.concat(col("y"))
>>> col("x") + col("y")
Args:
other (Expression): a string expression to concatenate with
Expand Down

0 comments on commit 7973b32

Please sign in to comment.