Skip to content

ColumnInfo

🛈 DocStrings

Name and dtype of one column.

Source code in src/cutepandas/frames/source.py
@dataclass(frozen=True, slots=True)
class ColumnInfo:
    """Name and dtype of one column."""

    name: Any
    """Column label (a tuple for pandas MultiIndex columns)."""
    dtype: str
    """The backend dtype as text (`int64`, `string[pyarrow]`, `Datetime(...)`)."""
    kind: Kind
    native_dtype: Any = field(default=None, compare=False, repr=False)
    """The backend dtype object."""

    @property
    def label(self) -> str:
        return format_name(self.name)

dtype instance-attribute

dtype: str

The backend dtype as text (int64, string[pyarrow], Datetime(...)).

name instance-attribute

name: Any

Column label (a tuple for pandas MultiIndex columns).

native_dtype class-attribute instance-attribute

native_dtype: Any = field(default=None, compare=False, repr=False)

The backend dtype object.

:fa-brands-github: Show source on GitHub