Skip to content

FrameSummary

🛈 DocStrings

What views need without holding a frame: shape, schema, memory.

Source code in src/datacook/engine/frames.py
@dataclass(frozen=True, slots=True)
class FrameSummary:
    """What views need without holding a frame: shape, schema, memory."""

    n_rows: int
    columns: tuple[Column, ...]
    nbytes: int

    @property
    def n_columns(self) -> int:
        return len(self.columns)

:fa-brands-github: Show source on GitHub