Coverage for src/ipyvizzu/data/converters/spark/protocol.py: 100%
10 statements
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-26 15:29 +0000
« prev ^ index » next coverage.py v7.6.12, created at 2025-02-26 15:29 +0000
1"""
2This module provides protocol classes for pandas data frame converter.
3"""
5from typing import Any, Callable, Protocol, Sequence, runtime_checkable
8@runtime_checkable
9class SparkDataFrame(Protocol):
10 """
11 Represents a pyspark DataFrame Protocol.
12 """
14 # pylint: disable=too-few-public-methods
16 columns: Sequence[str]
17 count: Callable[..., int]
18 sample: Callable[..., Any]
19 limit: Callable[..., Any]
20 select: Callable[..., Any]
21 withColumn: Callable[..., Any]
22 rdd: Any