This is an automated email from the ASF dual-hosted git repository.

ruifengz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 33a9c5d7f478 [MINOR][PYTHON][DOCS] Fix pyspark.sql.functions.reduce 
docstring typo
33a9c5d7f478 is described below

commit 33a9c5d7f478a476fe9882ad8fe101fd60756a98
Author: kaashif <[email protected]>
AuthorDate: Mon Jun 17 09:12:01 2024 +0800

    [MINOR][PYTHON][DOCS] Fix pyspark.sql.functions.reduce docstring typo
    
    ### What changes were proposed in this pull request?
    
    This PR fixes a mistake in the docstring for 
`pyspark.sql.functions.reduce`. The parameter to the function is called 
`initialValue` not `zero` - there is no other mention of `zero` on the page, so 
it must be a mistake and should be `initialValue`.
    
    ### Why are the changes needed?
    
    The docstring is incorrect.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No
    
    ### How was this patch tested?
    
    N/A
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No
    
    Closes #46923 from kaashif/patch-1.
    
    Authored-by: kaashif <[email protected]>
    Signed-off-by: Ruifeng Zheng <[email protected]>
---
 python/pyspark/sql/functions/builtin.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/sql/functions/builtin.py 
b/python/pyspark/sql/functions/builtin.py
index 2edbc9f5abe1..ed66ca8684ef 100644
--- a/python/pyspark/sql/functions/builtin.py
+++ b/python/pyspark/sql/functions/builtin.py
@@ -18449,7 +18449,7 @@ def aggregate(
         initial value. Name of column or expression
     merge : function
         a binary function ``(acc: Column, x: Column) -> Column...`` returning 
expression
-        of the same type as ``zero``
+        of the same type as ``initialValue``
     finish : function, optional
         an optional unary function ``(x: Column) -> Column: ...``
         used to convert accumulated value.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to