HyukjinKwon commented on code in PR #37836:
URL: https://github.com/apache/spark/pull/37836#discussion_r969205360
##########
python/pyspark/pandas/window.py:
##########
@@ -1483,6 +1661,66 @@ def mean(self) -> FrameLike:
"""
return super().mean()
+ def quantile(self, quantile: float, accuracy: int = 10000) -> FrameLike:
+ """
+ Calculate the expanding quantile of the values.
+
+ Returns
+ -------
+ Series or DataFrame
+ Returned object type is determined by the caller of the expanding
+ calculation.
+
+ Parameters
+ ----------
+ quantile : float
+ Value between 0 and 1 providing the quantile to compute.
+ accuracy : int, optional
+ Default accuracy of approximation. Larger value means better
accuracy.
+ The relative error can be deduced by 1.0 / accuracy.
+ This is a panda-on-Spark specific parameter.
+
+ Notes
+ -------
Review Comment:
Let's fix this `-` - otherwise the doc build complains IIRC.
--
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]