This is an automated email from the ASF dual-hosted git repository.
zhengruifeng pushed a commit to branch branch-4.x
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.x by this push:
new 13b9a81b3e32 [MINOR][PS][DOC] Fix typos in pandas-on-Spark docstrings
13b9a81b3e32 is described below
commit 13b9a81b3e32f01c8a36fe8b67cb64969a7271cb
Author: Ruifeng Zheng <[email protected]>
AuthorDate: Tue Jul 7 14:51:40 2026 +0800
[MINOR][PS][DOC] Fix typos in pandas-on-Spark docstrings
### What changes were proposed in this pull request?
Fix two typos in pandas-on-Spark docstrings:
- `groupby.py`: `lenght` -> `length`
- `series.py`: `indeces's` -> `indices'`
### Why are the changes needed?
The typos appear in the published API documentation.
### Does this PR introduce _any_ user-facing change?
No, docstring-only.
### How was this patch tested?
N/A, doc-only change.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Code
Closes #57065 from zhengruifeng/fix-pandas-doc-typos-dev6.
Authored-by: Ruifeng Zheng <[email protected]>
Signed-off-by: Ruifeng Zheng <[email protected]>
(cherry picked from commit e00505aba52aad76b5082106743e98dd4e44442e)
Signed-off-by: Ruifeng Zheng <[email protected]>
---
python/pyspark/pandas/groupby.py | 2 +-
python/pyspark/pandas/series.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/python/pyspark/pandas/groupby.py b/python/pyspark/pandas/groupby.py
index 2cfa1ae2316b..9e02b73d5c64 100644
--- a/python/pyspark/pandas/groupby.py
+++ b/python/pyspark/pandas/groupby.py
@@ -1136,7 +1136,7 @@ class GroupBy(Generic[FrameLike], metaclass=ABCMeta):
There is a behavior difference between pandas-on-Spark and pandas:
* when there is no aggregation column, and `n` not equal to 0 or -1,
- the returned empty dataframe may have an index with different
lenght `__len__`.
+ the returned empty dataframe may have an index with different
length `__len__`.
Examples
--------
diff --git a/python/pyspark/pandas/series.py b/python/pyspark/pandas/series.py
index 6496137824de..159a7d01a135 100644
--- a/python/pyspark/pandas/series.py
+++ b/python/pyspark/pandas/series.py
@@ -6000,7 +6000,7 @@ class Series(Frame, IndexOpsMixin, Generic[T]):
-----
Indices are assumed to be sorted. Raises if this is not the case and
config
'compute.eager_check' is True. If 'compute.eager_check' is False
pandas-on-Spark just
- proceeds and performs by ignoring the indeces's order
+ proceeds and performs by ignoring the indices' order
Examples
--------
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]