Skip to content

Commit 7973b32

Browse files
authored
[DOCS] Improve .str.concat docs (#1887)
1 parent 1ac53c9 commit 7973b32

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

daft/expressions/expressions.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,13 @@ def split(self, pattern: str | Expression) -> Expression:
705705
def concat(self, other: str) -> Expression:
706706
"""Concatenates two string expressions together
707707
708+
.. NOTE::
709+
Another (easier!) way to invoke this functionality is using the Python `+` operator which is
710+
aliased to using `.str.concat`. These are equivalent:
711+
712+
>>> col("x").str.concat(col("y"))
713+
>>> col("x") + col("y")
714+
708715
Args:
709716
other (Expression): a string expression to concatenate with
710717

0 commit comments

Comments
 (0)