This is an automated email from the ASF dual-hosted git repository.
Yicong-Huang pushed a commit to branch branch-4.3
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/branch-4.3 by this push:
new 0ef317eae668 [MINOR][PS][DOC] Document missing rolling and expanding
std, var, skew and kurt APIs
0ef317eae668 is described below
commit 0ef317eae668b08c564d15d7fe17dc99b4effe5d
Author: Yicong Huang <[email protected]>
AuthorDate: Thu Oct 22 23:43:52 2026 +0000
[MINOR][PS][DOC] Document missing rolling and expanding std, var, skew and
kurt APIs
### What changes were proposed in this pull request?
Add `Rolling.std`, `Rolling.var`, `Rolling.skew`, `Rolling.kurt`,
`Expanding.std`, `Expanding.var`, `Expanding.skew`, and `Expanding.kurt` to the
pandas-on-Spark window reference autosummary lists.
### Why are the changes needed?
These methods have existed since Spark 3.4 with full docstrings, but are
missing from the window reference, so no API pages are generated for them.
Follows up #59506, which added `sem` and `*Groupby.median`.
### Does this PR introduce _any_ user-facing change?
No. Documentation only.
### How was this patch tested?
Built the window reference in an isolated Sphinx HTML project with autodoc,
autosummary, and numpydoc enabled and warnings treated as errors (`-W`).
Verified all eight API pages were generated. Also ran `git diff --check`.
### Was this patch authored or co-authored using generative AI tooling?
Generated-by: Claude Opus 5.5
This pull request and its description were written by Isaac.
Closes #59723 from Yicong-Huang/add-missing-pyspark-api-docs.
Authored-by: Yicong Huang <[email protected]>
Signed-off-by: Yicong-Huang <[email protected]>
(cherry picked from commit e14fd5748b6c1045a85f54c345c81e862e2e5920)
Signed-off-by: Yicong-Huang <[email protected]>
---
python/docs/source/reference/pyspark.pandas/window.rst | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/python/docs/source/reference/pyspark.pandas/window.rst
b/python/docs/source/reference/pyspark.pandas/window.rst
index 090cd9883280..3d8ad60c7343 100644
--- a/python/docs/source/reference/pyspark.pandas/window.rst
+++ b/python/docs/source/reference/pyspark.pandas/window.rst
@@ -41,6 +41,10 @@ Standard moving window functions
Rolling.quantile
Rolling.median
Rolling.sem
+ Rolling.std
+ Rolling.var
+ Rolling.skew
+ Rolling.kurt
RollingGroupby.median
Standard expanding window functions
@@ -57,6 +61,10 @@ Standard expanding window functions
Expanding.quantile
Expanding.median
Expanding.sem
+ Expanding.std
+ Expanding.var
+ Expanding.skew
+ Expanding.kurt
ExpandingGroupby.median
Exponential moving window functions
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]