This is an automated email from the ASF dual-hosted git repository.
ruifengz pushed a commit to branch branch-4.0
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.0 by this push:
new adb9a1130017 [SPARK-54728][PYTHON][DOCS] Remove a wrong note in
`dataframe.isEmpty`
adb9a1130017 is described below
commit adb9a1130017887b6238d70bf0ae3c74eb3100cf
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 cd06b3fa3eeb..a3f8bc7a0f01 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]