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

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


The following commit(s) were added to refs/heads/branch-4.1 by this push:
     new fea8362746af [SPARK-54728][PYTHON][DOCS] Remove a wrong note in 
`dataframe.isEmpty`
fea8362746af is described below

commit fea8362746af13e235adc64b9c1c5fd6f9faa86b
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Wed Dec 17 17:17:54 2025 +0800

    [SPARK-54728][PYTHON][DOCS] Remove a wrong note in `dataframe.isEmpty`
    
    ### What changes were proposed in this pull request?
    Remove a wrong note in `dataframe.isEmpty`
    
    ### Why are the changes needed?
    > Unlike `count()`, this method does not trigger any computation.
    
    this note is incorrect, a computation will be triggered in most cases
    
    ### Does this PR introduce _any_ user-facing change?
    yes, doc-only change
    
    ### How was this patch tested?
    ci
    
    ### Was this patch authored or co-authored using generative AI tooling?
    no
    
    Closes #53500 from zhengruifeng/doc_fix_is_empty.
    
    Authored-by: Ruifeng Zheng <[email protected]>
    Signed-off-by: Ruifeng Zheng <[email protected]>
    (cherry picked from commit 10bc8bcba103b3f268e5b929291ae140af94754d)
    Signed-off-by: Ruifeng Zheng <[email protected]>
---
 python/pyspark/sql/dataframe.py | 1 -
 1 file changed, 1 deletion(-)

diff --git a/python/pyspark/sql/dataframe.py b/python/pyspark/sql/dataframe.py
index 502883cf59b1..f8f5cfecd2c6 100644
--- a/python/pyspark/sql/dataframe.py
+++ b/python/pyspark/sql/dataframe.py
@@ -852,7 +852,6 @@ class DataFrame:
 
         Notes
         -----
-        - Unlike `count()`, this method does not trigger any computation.
         - An empty DataFrame has no rows. It may have columns, but no data.
 
         Examples


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

Reply via email to