From 3d14b745773f66d50c5ee5b3d7835b5f11132ec8 Mon Sep 17 00:00:00 2001 From: Yikun Jiang Date: Thu, 15 Sep 2022 17:14:21 +0800 Subject: [PATCH] [SPARK-40440][PS][DOCS] Fix wrong reference and content in PS windows related doc ### What changes were proposed in this pull request? Fix wrong reference and content in PS windows related doc: - Add `pyspark.pandas.` for window function doc - Change `pandas_on_spark.DataFrame` to `pyspark.pandas.DataFrame` to make sure link generate correctly. - Fix `Returns` and `See Also` for `Rolling.count` - Add ewm doc for `Dataframe` and `series` ### Why are the changes needed? ### Does this PR introduce _any_ user-facing change? ### How was this patch tested? ``` cd ~/spark/python/docs make html ``` ![image](https://user-images.githubusercontent.com/1736354/190328623-4c3250af-3968-430e-adf3-890d1bda850e.png) ![image](https://user-images.githubusercontent.com/1736354/190346064-b359e217-dac0-41df-8033-8477bc94b09b.png) ![image](https://user-images.githubusercontent.com/1736354/190346138-10bfc3ad-0a37-4bdb-b4aa-cc1ee2a3b018.png) Closes #37895 from Yikun/add-doc. Authored-by: Yikun Jiang Signed-off-by: Ruifeng Zheng --- .../source/reference/pyspark.pandas/frame.rst | 1 + .../reference/pyspark.pandas/series.rst | 1 + .../reference/pyspark.pandas/window.rst | 8 +- python/pyspark/pandas/window.py | 301 +++++++++--------- 4 files changed, 160 insertions(+), 151 deletions(-) diff --git a/python/docs/source/reference/pyspark.pandas/frame.rst b/python/docs/source/reference/pyspark.pandas/frame.rst index ff743371320bc..9c69ca647c499 100644 --- a/python/docs/source/reference/pyspark.pandas/frame.rst +++ b/python/docs/source/reference/pyspark.pandas/frame.rst @@ -151,6 +151,7 @@ Computations / Descriptive Stats DataFrame.count DataFrame.cov DataFrame.describe + DataFrame.ewm DataFrame.kurt DataFrame.kurtosis DataFrame.mad diff --git a/python/docs/source/reference/pyspark.pandas/series.rst b/python/docs/source/reference/pyspark.pandas/series.rst index 1cf63c1a8ae2c..5ed6df6b2a13f 100644 --- a/python/docs/source/reference/pyspark.pandas/series.rst +++ b/python/docs/source/reference/pyspark.pandas/series.rst @@ -145,6 +145,7 @@ Computations / Descriptive Stats Series.cumsum Series.cumprod Series.describe + Series.ewm Series.filter Series.kurt Series.mad diff --git a/python/docs/source/reference/pyspark.pandas/window.rst b/python/docs/source/reference/pyspark.pandas/window.rst index b5d74f2029ac8..c840be357fa75 100644 --- a/python/docs/source/reference/pyspark.pandas/window.rst +++ b/python/docs/source/reference/pyspark.pandas/window.rst @@ -21,9 +21,11 @@ Window ====== .. currentmodule:: pyspark.pandas.window -Rolling objects are returned by ``.rolling`` calls: :func:`pandas_on_spark.DataFrame.rolling`, :func:`pandas_on_spark.Series.rolling`, etc. -Expanding objects are returned by ``.expanding`` calls: :func:`pandas_on_spark.DataFrame.expanding`, :func:`pandas_on_spark.Series.expanding`, etc. -ExponentialMoving objects are returned by ``.ewm`` calls: :func:`pandas_on_spark.DataFrame.ewm`, :func:`pandas_on_spark.Series.ewm`, etc. +Rolling objects are returned by ``.rolling`` calls: :func:`pyspark.pandas.DataFrame.rolling`, :func:`pyspark.pandas.Series.rolling`, etc. + +Expanding objects are returned by ``.expanding`` calls: :func:`pyspark.pandas.DataFrame.expanding`, :func:`pyspark.pandas.Series.expanding`, etc. + +ExponentialMoving objects are returned by ``.ewm`` calls: :func:`pyspark.pandas.DataFrame.ewm`, :func:`pyspark.pandas.Series.ewm`, etc. Standard moving window functions -------------------------------- diff --git a/python/pyspark/pandas/window.py b/python/pyspark/pandas/window.py index 274000cbb2cd0..7ff7a6a8eb684 100644 --- a/python/pyspark/pandas/window.py +++ b/python/pyspark/pandas/window.py @@ -224,10 +224,15 @@ def count(self) -> FrameLike: Returns ------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.count : Count of the full Series. - DataFrame.count : Count of the full DataFrame. + Series or DataFrame + Return type is the same as the original object with `np.float64` dtype. + + See Also + -------- + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.count : Count of the full Series. + pyspark.pandas.DataFrame.count : Count of the full DataFrame. Examples -------- @@ -279,10 +284,10 @@ def sum(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.sum : Reducing sum for Series. - DataFrame.sum : Reducing sum for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.sum : Reducing sum for Series. + pyspark.pandas.DataFrame.sum : Reducing sum for DataFrame. Examples -------- @@ -357,10 +362,10 @@ def min(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with a Series. - DataFrame.rolling : Calling object with a DataFrame. - Series.min : Similar method for Series. - DataFrame.min : Similar method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with a Series. + pyspark.pandas.DataFrame.rolling : Calling object with a DataFrame. + pyspark.pandas.Series.min : Similar method for Series. + pyspark.pandas.DataFrame.min : Similar method for DataFrame. Examples -------- @@ -434,10 +439,10 @@ def max(self) -> FrameLike: See Also -------- - Series.rolling : Series rolling. - DataFrame.rolling : DataFrame rolling. - Series.max : Similar method for Series. - DataFrame.max : Similar method for DataFrame. + pyspark.pandas.Series.rolling : Series rolling. + pyspark.pandas.DataFrame.rolling : DataFrame rolling. + pyspark.pandas.Series.max : Similar method for Series. + pyspark.pandas.DataFrame.max : Similar method for DataFrame. Examples -------- @@ -512,10 +517,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.mean : Equivalent method for Series. - DataFrame.mean : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.mean : Equivalent method for Series. + pyspark.pandas.DataFrame.mean : Equivalent method for DataFrame. Examples -------- @@ -684,10 +689,10 @@ def std(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. Examples @@ -784,10 +789,10 @@ def skew(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. Examples @@ -836,10 +841,10 @@ def kurt(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. Examples @@ -985,10 +990,10 @@ def count(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.count : Count of the full Series. - DataFrame.count : Count of the full DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.count : Count of the full Series. + pyspark.pandas.DataFrame.count : Count of the full DataFrame. Examples -------- @@ -1039,10 +1044,10 @@ def sum(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.sum : Sum of the full Series. - DataFrame.sum : Sum of the full DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.sum : Sum of the full Series. + pyspark.pandas.DataFrame.sum : Sum of the full DataFrame. Examples -------- @@ -1093,10 +1098,10 @@ def min(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.min : Min of the full Series. - DataFrame.min : Min of the full DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.min : Min of the full Series. + pyspark.pandas.DataFrame.min : Min of the full DataFrame. Examples -------- @@ -1147,10 +1152,10 @@ def max(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.max : Max of the full Series. - DataFrame.max : Max of the full DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.max : Max of the full Series. + pyspark.pandas.DataFrame.max : Max of the full DataFrame. Examples -------- @@ -1201,10 +1206,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.mean : Mean of the full Series. - DataFrame.mean : Mean of the full DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.mean : Mean of the full Series. + pyspark.pandas.DataFrame.mean : Mean of the full DataFrame. Examples -------- @@ -1325,10 +1330,10 @@ def std(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. """ return super().std() @@ -1344,10 +1349,10 @@ def var(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. """ return super().var() @@ -1363,10 +1368,10 @@ def skew(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. """ return super().skew() @@ -1382,10 +1387,10 @@ def kurt(self) -> FrameLike: See Also -------- - Series.rolling : Calling object with Series data. - DataFrame.rolling : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.rolling : Calling object with Series data. + pyspark.pandas.DataFrame.rolling : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. """ return super().kurt() @@ -1458,10 +1463,10 @@ def count(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.count : Count of the full Series. - DataFrame.count : Count of the full DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.count : Count of the full Series. + pyspark.pandas.DataFrame.count : Count of the full DataFrame. Examples -------- @@ -1499,10 +1504,10 @@ def sum(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.sum : Reducing sum for Series. - DataFrame.sum : Reducing sum for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.sum : Reducing sum for Series. + pyspark.pandas.DataFrame.sum : Reducing sum for DataFrame. Examples -------- @@ -1561,10 +1566,10 @@ def min(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with a Series. - DataFrame.expanding : Calling object with a DataFrame. - Series.min : Similar method for Series. - DataFrame.min : Similar method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with a Series. + pyspark.pandas.DataFrame.expanding : Calling object with a DataFrame. + pyspark.pandas.Series.min : Similar method for Series. + pyspark.pandas.DataFrame.min : Similar method for DataFrame. Examples -------- @@ -1597,10 +1602,10 @@ def max(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.max : Similar method for Series. - DataFrame.max : Similar method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.max : Similar method for Series. + pyspark.pandas.DataFrame.max : Similar method for DataFrame. Examples -------- @@ -1634,10 +1639,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.mean : Equivalent method for Series. - DataFrame.mean : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.mean : Equivalent method for Series. + pyspark.pandas.DataFrame.mean : Equivalent method for DataFrame. Examples -------- @@ -1737,10 +1742,10 @@ def std(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. Examples @@ -1787,10 +1792,10 @@ def var(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. Examples @@ -1837,10 +1842,10 @@ def skew(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. Examples @@ -1889,10 +1894,10 @@ def kurt(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. Examples @@ -1959,10 +1964,10 @@ def count(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.count : Count of the full Series. - DataFrame.count : Count of the full DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.count : Count of the full Series. + pyspark.pandas.DataFrame.count : Count of the full DataFrame. Examples -------- @@ -2013,10 +2018,10 @@ def sum(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.sum : Reducing sum for Series. - DataFrame.sum : Reducing sum for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.sum : Reducing sum for Series. + pyspark.pandas.DataFrame.sum : Reducing sum for DataFrame. Examples -------- @@ -2067,10 +2072,10 @@ def min(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with a Series. - DataFrame.expanding : Calling object with a DataFrame. - Series.min : Similar method for Series. - DataFrame.min : Similar method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with a Series. + pyspark.pandas.DataFrame.expanding : Calling object with a DataFrame. + pyspark.pandas.Series.min : Similar method for Series. + pyspark.pandas.DataFrame.min : Similar method for DataFrame. Examples -------- @@ -2120,10 +2125,10 @@ def max(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.max : Similar method for Series. - DataFrame.max : Similar method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.max : Similar method for Series. + pyspark.pandas.DataFrame.max : Similar method for DataFrame. Examples -------- @@ -2174,10 +2179,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.mean : Equivalent method for Series. - DataFrame.mean : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.mean : Equivalent method for Series. + pyspark.pandas.DataFrame.mean : Equivalent method for DataFrame. Examples -------- @@ -2299,10 +2304,10 @@ def std(self) -> FrameLike: See Also -------- - Series.expanding: Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding: Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. """ return super().std() @@ -2318,10 +2323,10 @@ def var(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. """ return super().var() @@ -2338,10 +2343,10 @@ def skew(self) -> FrameLike: See Also -------- - Series.expanding: Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.std : Equivalent method for Series. - DataFrame.std : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding: Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.std : Equivalent method for Series. + pyspark.pandas.DataFrame.std : Equivalent method for DataFrame. numpy.std : Equivalent method for Numpy array. """ return super().skew() @@ -2357,10 +2362,10 @@ def kurt(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.var : Equivalent method for Series. - DataFrame.var : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.var : Equivalent method for Series. + pyspark.pandas.DataFrame.var : Equivalent method for DataFrame. numpy.var : Equivalent method for Numpy array. """ return super().kurt() @@ -2512,10 +2517,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.mean : Equivalent method for Series. - DataFrame.mean : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.mean : Equivalent method for Series. + pyspark.pandas.DataFrame.mean : Equivalent method for DataFrame. Examples -------- @@ -2613,10 +2618,10 @@ def mean(self) -> FrameLike: See Also -------- - Series.expanding : Calling object with Series data. - DataFrame.expanding : Calling object with DataFrames. - Series.mean : Equivalent method for Series. - DataFrame.mean : Equivalent method for DataFrame. + pyspark.pandas.Series.expanding : Calling object with Series data. + pyspark.pandas.DataFrame.expanding : Calling object with DataFrames. + pyspark.pandas.Series.mean : Equivalent method for Series. + pyspark.pandas.DataFrame.mean : Equivalent method for DataFrame. Examples --------