Skip to content

Window

Window

Entry point for building a WindowSpec, like pyspark.sql.Window.

unboundedPreceding class-attribute instance-attribute

unboundedPreceding: int = _SparkWindow.unboundedPreceding

unboundedFollowing class-attribute instance-attribute

unboundedFollowing: int = _SparkWindow.unboundedFollowing

currentRow class-attribute instance-attribute

currentRow: int = _SparkWindow.currentRow

partitionBy staticmethod

partitionBy(*cols: WindowColumn) -> WindowSpec

orderBy staticmethod

orderBy(*cols: WindowColumn) -> WindowSpec

rowsBetween staticmethod

rowsBetween(start: int, end: int) -> WindowSpec

rangeBetween staticmethod

rangeBetween(start: int, end: int) -> WindowSpec

WindowSpec

A window specification. Build one with Window.

to_spark

to_spark() -> WindowSpec

partitionBy

partitionBy(*cols: WindowColumn) -> WindowSpec

orderBy

orderBy(*cols: WindowColumn) -> WindowSpec

rowsBetween

rowsBetween(start: int, end: int) -> WindowSpec

rangeBetween

rangeBetween(start: int, end: int) -> WindowSpec