Protocol
ipyvizzu.data.converters.spark.protocol
This module provides protocol classes for pandas data frame converter.
ipyvizzu.data.converters.spark.protocol.SparkDataFrame
Bases: Protocol
Represents a pyspark DataFrame Protocol.
Source code in src/ipyvizzu/data/converters/spark/protocol.py
@runtime_checkable
class SparkDataFrame(Protocol):
"""
Represents a pyspark DataFrame Protocol.
"""
# pylint: disable=too-few-public-methods
columns: Sequence[str]
count: Callable[..., int]
sample: Callable[..., Any]
limit: Callable[..., Any]
select: Callable[..., Any]
withColumn: Callable[..., Any]
rdd: Any