Skip to content

ColumnStats

🛈 DocStrings

Basic statistics of one column (see FrameSource.describe).

Source code in src/cutepandas/frames/source.py
@dataclass(frozen=True, slots=True)
class ColumnStats:
    """Basic statistics of one column (see `FrameSource.describe`)."""

    count: int
    null_count: int
    unique: int | None = None
    min: Any = None
    max: Any = None
    mean: float | None = None
    std: float | None = None
    top: list[tuple[Any, int]] = field(default_factory=list)
    """Most frequent non-null values with their counts, most frequent first."""

top class-attribute instance-attribute

top: list[tuple[Any, int]] = field(default_factory=list)

Most frequent non-null values with their counts, most frequent first.

:fa-brands-github: Show source on GitHub