From 75bd0f944a4533604b7947946f1b187f1b64e1ca Mon Sep 17 00:00:00 2001 From: Jay Chia <17691182+jaychia@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:06:09 -0800 Subject: [PATCH] [DOCS] Improve .str.concat docs --- daft/expressions/expressions.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/daft/expressions/expressions.py b/daft/expressions/expressions.py index 5ee05c4cd4..a903c968db 100644 --- a/daft/expressions/expressions.py +++ b/daft/expressions/expressions.py @@ -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