From 7973b32f9db02f3a3531c2d2d303ca65413e0f7d Mon Sep 17 00:00:00 2001 From: Jay Chia <17691182+jaychia@users.noreply.github.com> Date: Wed, 14 Feb 2024 17:16:34 -0800 Subject: [PATCH] [DOCS] Improve .str.concat docs (#1887) --- 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