jorisvandenbossche commented on pull request #11918:
URL: https://github.com/apache/arrow/pull/11918#issuecomment-989958688
This makes the following already possible (to use in filter or projection
expression in dataset):
```
In [1]: import pyarrow.compute as pc
In [2]: import pyarrow.dataset as ds
In [3]: pc.hour(ds.field("datetime_col"))
Out[3]: <pyarrow.dataset.Expression hour(datetime_col)>
In [4]: pc.days_between(ds.field("col1"), ds.field("col2"))
Out[4]: <pyarrow.dataset.Expression days_between(col1, col2)>
```
--
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]