pitrou commented on a change in pull request #12076:
URL: https://github.com/apache/arrow/pull/12076#discussion_r783868958
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -1326,6 +1781,25 @@ cdef class _QuantileOptions(FunctionOptions):
class QuantileOptions(_QuantileOptions):
+ __doc__ = f"""
+ Options for the `quantile` function.
+
+ Parameters
+ ----------
+ q : double or sequence of double, default 0.5
+ Quantiles to compute. All values must be in [0, 1].
+ interpolation : str, default "linear"
+ How to break ties between competing data points for a given quantile.
+ Accepted values are:
+ - "linear": compute an interpolation
Review comment:
Good point :-)
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -950,6 +1132,16 @@ cdef class _FilterOptions(FunctionOptions):
class FilterOptions(_FilterOptions):
+ """
+ Options for selecting with a boolean filter.
+
+ Parameters
+ ----------
+ null_selection_behavior : str, default "drop"
+ How to handle nulls in the input.
Review comment:
Will do, thanks.
##########
File path: python/pyarrow/_compute.pyx
##########
@@ -907,7 +1023,23 @@ cdef class _ReplaceSubstringOptions(FunctionOptions):
class ReplaceSubstringOptions(_ReplaceSubstringOptions):
- def __init__(self, pattern, replacement, *, max_replacements=-1):
+ """
+ Options for replacing matched substrings.
+
+ Parameters
+ ----------
+ pattern : str
+ Substring pattern to look for inside input values.
+ replacement : str
+ What to replace the pattern with.
+ max_replacements : int or None, default None
+ If given, the maximum number of strings to replace in each
+ input value.
Review comment:
Right, I'll adapt to this one.
--
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]