bkmgit commented on a change in pull request #11882:
URL: https://github.com/apache/arrow/pull/11882#discussion_r786000919
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -785,6 +785,30 @@ class
ElementWiseAggregateOptions(_ElementWiseAggregateOptions):
self._set_options(skip_nulls)
+cdef CInclusive unwrap_inclusive(inclusive) except *:
+ if inclusive == "both":
+ return CInclusive_BOTH
+ elif inclusive == "left":
+ return CInclusive_LEFT
+ elif inclusive == "right":
+ return CInclusive_RIGHT
+ elif inclusive == "neither":
+ return CInclusive_NEITHER
+ _raise_invalid_function_option(inclusive, "inclusive")
+
+
+cdef class _BetweenOptions(FunctionOptions):
+ def _set_options(self, inclusive):
+ self.wrapped.reset(
+ new CBetweenOptions(unwrap_inclusive(inclusive))
+ )
+
+
+class BetweenOptions(_BetweenOptions):
Review comment:
Done
--
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]