-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-9465: [Python] Improve ergonomics of compute module #8163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
jorisvandenbossche
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements!
python/pyarrow/_compute.pyx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "meta" be explained here as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, you're right.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we simply change this? (is it public on the C++ side?) And it is changed for consistency with how it's called elsewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The next version will be 2.0.0, meaning it's ok to break APIs. Of course, we should try to minimize breakage, but this one aims to fix an inconsistency.
Lots of assorted things here: * Automatically generate global wrappers for calling registered compute functions * Improve metadata of such wrappers (e.g. name, docstring) * Make it easier to pass options (for example via kwargs) * Type-check options * Add some docstrings * Expose more function attributes (e.g. arity) * Fix some crashes
7cce626 to
648ee85
Compare
|
CI failures here look unrelated (though someone should really take a look at them). |
…sses #8163 exposes `pyarrow.compute` kernels and generates their docstrings. This PR adds documentation for the module in the User Guide and the Python API reference. Closes #8145 from arw2019/ARROW-7871 Lead-authored-by: arw2019 <andrew.r.wieteska@gmail.com> Co-authored-by: Antoine Pitrou <antoine@python.org> Signed-off-by: Antoine Pitrou <antoine@python.org>
Lots of assorted things here:
registered compute functions