Skip to content

CellChunk

🛈 DocStrings

One converted block of a column: everything data() returns, per row.

Source code in src/cutepandas/pandasmodels/dataframemodel.py
@dataclass(slots=True)
class CellChunk:
    """One converted block of a column: everything `data()` returns, per row."""

    start: int
    values: list[Any]
    nulls: list[bool]
    display: list[str]
    scaled: bool = False
    """True once `normalized` / `colors` were computed (both stay None if the
    column is not numeric / boolean)."""
    normalized: list[float | None] | None = None
    colors: list[Any] | None = None

scaled class-attribute instance-attribute

scaled: bool = False

True once normalized / colors were computed (both stay None if the column is not numeric / boolean).

:fa-brands-github: Show source on GitHub