milenkovicm opened a new pull request, #1271:
URL: https://github.com/apache/datafusion-python/pull/1271
# Which issue does this PR close?
Closes #.
# Rationale for this change
Expose DataFrame.select_exprs method, which is supported in DataFusion, this
method is similar to
[pyspark.select_expr](https://spark.apache.org/docs/latest/api/python/reference/pyspark.sql/api/pyspark.sql.DataFrame.selectExpr.html)
Method will parse string expressions into logical plan expressions, making
easier to create select statements when expressions are involved
```python
df_3 = df.select_exprs(
"abs(a + b)",
"abs(a - b)",
)
```
It would be ideal if we could support expressions on df.select(...) but that
change looked as a bit complicated for me.
# What changes are included in this PR?
- new method exposed
- test to cover it
# Are there any user-facing changes?
- additional method has been added
--
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]