torchwrench.utils.data.tabular module¶
-
class torchwrench.utils.data.tabular.TabularDataset(data: Mapping[Any, SupportsGetitemIterLen] | SupportsGetitemIterLen[dict[Any, Any], Any] | DataFrame | Tensor | ndarray | DynamicItemDataset | TabularDatasetInterface[T_RowIndex, T_ColIndex], row_mapper: Mapping[T_RowIndex, T_RowIndex] | None =
None, col_mapper: MutableMapping[T_ColIndex, T_ColIndex] | None =None, fns_list: Iterable[tuple[tuple[T_ColIndex, ...] | T_ColIndex, tuple[T_ColIndex, ...] | T_ColIndex, Callable]] =())[source]¶ Bases:
Generic[T_RowIndex,T_ColIndex],TabularDatasetInterface[T_RowIndex,T_ColIndex]-
add_dynamic_column(fn: Callable, requires: tuple[T_ColIndex, ...], provides: T_ColIndex | tuple[T_ColIndex, ...], add_to_output_keys: bool =
True) None[source]¶
- property column_names : SupportsGetitemIterLen¶
- property row_names : SupportsGetitemIterLen¶
-
add_dynamic_column(fn: Callable, requires: tuple[T_ColIndex, ...], provides: T_ColIndex | tuple[T_ColIndex, ...], add_to_output_keys: bool =