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

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


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

commit d9a370702c4a373cbf223b551e867a2e3adb18c6
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 c52fa568b7b3..a077f14d617f 100644
--- a/python/pyspark/sql/dataframe.py
+++ b/python/pyspark/sql/dataframe.py
@@ -853,7 +853,6 @@ class DataFrame(PandasMapOpsMixin, PandasConversionMixin):
 
         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