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

srowen 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 5ac2b0fc024 [SPARK-43005][PYSPARK] Fix typo in pyspark/pandas/config.py
5ac2b0fc024 is described below

commit 5ac2b0fc024ae499119dfd5ab2ee4d038418c5fd
Author: thyecust <t...@mail.ecust.edu.cn>
AuthorDate: Mon Apr 3 08:24:17 2023 -0500

    [SPARK-43005][PYSPARK] Fix typo in pyspark/pandas/config.py
    
    By comparing compute.isin_limit and plotting.max_rows, `v is v` is likely 
to be a typo.
    
    ### What changes were proposed in this pull request?
    
    fix `v is v >= 0` with `v >= 0`.
    
    ### Why are the changes needed?
    
    By comparing compute.isin_limit and plotting.max_rows, `v is v` is likely 
to be a typo.
    
    ### Does this PR introduce _any_ user-facing change?
    
    No.
    
    ### How was this patch tested?
    
    By GitHub Actions.
    
    Closes #40620 from thyecust/patch-2.
    
    Authored-by: thyecust <t...@mail.ecust.edu.cn>
    Signed-off-by: Sean Owen <sro...@gmail.com>
---
 python/pyspark/pandas/config.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/python/pyspark/pandas/config.py b/python/pyspark/pandas/config.py
index 7c084bd9e22..ffc5154e49c 100644
--- a/python/pyspark/pandas/config.py
+++ b/python/pyspark/pandas/config.py
@@ -270,7 +270,7 @@ _options: List[Option] = [
         default=1000,
         types=int,
         check_func=(
-            lambda v: v is v >= 0,
+            lambda v: v >= 0,
             "'plotting.max_rows' should be greater than or equal to 0.",
         ),
     ),


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to