diff --git a/python/pyspark/pandas/config.py b/python/pyspark/pandas/config.py index 7c084bd9e2258..ffc5154e49cc8 100644 --- a/python/pyspark/pandas/config.py +++ b/python/pyspark/pandas/config.py @@ -270,7 +270,7 @@ def validate(self, v: Any) -> None: 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.", ), ),