timsaucer commented on code in PR #1271:
URL:
https://github.com/apache/datafusion-python/pull/1271#discussion_r2426918410
##########
python/datafusion/dataframe.py:
##########
@@ -404,6 +404,15 @@ def select_columns(self, *args: str) -> DataFrame:
DataFrame only containing the specified columns.
"""
return self.select(*args)
+
+ def select_exprs(self, *args: str) -> DataFrame:
+ """Project arbitrary list of expression strings into a new DataFrame.
Method will parse string expressions into logical plan expressions.
+ The output DataFrame has one column for each element in exprs.
+
+ Returns:
+ DataFrame only containing the specified columns.
+ """
+ return self.df.select_exprs(*args)
Review Comment:
I think this will fail the `ruff` linter
--
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]