ion-elgreco commented on code in PR #909:
URL: https://github.com/apache/datafusion-python/pull/909#discussion_r1798340584


##########
python/datafusion/dataframe.py:
##########
@@ -160,6 +160,40 @@ def with_column(self, name: str, expr: Expr) -> DataFrame:
         """
         return DataFrame(self.df.with_column(name, expr.expr))
 
+    def with_columns(
+        self, *exprs: Expr | Iterable[Expr], **named_exprs: Expr
+    ) -> DataFrame:
+        """Add an additional column to the DataFrame.
+
+        Args:
+            *exprs: Name of the column to add.
+            **named_exprs: Expression to compute the column.

Review Comment:
   I'll add the example later in the doc!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to