tabsdata.tableframe

class SysCol(
*values,
)

Bases: StrEnum

empty() TableFrame

Creates an empty (no column - no row) TableFrame.

from_dict(
data: Mapping[str, Sequence[object] | Mapping[str, Sequence[object]]] | None = None,
) TableFrame

Creates tableframe from a dictionary, or None. None produces as an empty (no column - no row) tableframe.

Parameters:

data – Input data.

from_pandas(
data: pd.DataFrame | None = None,
) td_frame.TableFrame

Creates tableframe from a pandas dataframe, or None. None produces as an empty (no column - no row) tableframe.

Parameters:

data – Input data.

from_polars(
data: LazyFrame | DataFrame | None = None,
) TableFrame

Creates tableframe from a polars dataframe or lazyframe, or None. None produces as an empty (no column - no row) tableframe.

Parameters:

data – Input data.

to_dict(
data: TableFrame,
) dict[str, list[Any]]

Creates dictionary from a tableframe, or None. None produces and empty (no key) dictionary.

Parameters:

data – Input data.

to_pandas(
data: td_frame.TableFrame,
) pd.DataFrame

Creates pandas dataframe from a tableframe, or None. None produces and empty (no column - no row) pandas dataframe.

Parameters:

data – Input data.

to_polars_df(
data: TableFrame,
) DataFrame

Creates polars dataframe from a tableframe, or None. None produces and empty (no column - no row) polars dataframe.

Parameters:

data – Input data.

to_polars_lf(
data: TableFrame,
) LazyFrame

Creates polars lazyframe from a tableframe, or None. None produces and empty (no column - no row) polars lazyframe.

Parameters:

data – Input data.