Core Concepts
Dataset Layer
Unified tabular dataset and schema representation
Tabular data formats are fragmented. Columns might have different names, null indicators, or types depending on the file format or parsing engine. The **Dataset Layer** is a normalized layer that wraps tabular sources into an immutable, structured contract.
The Dataset Class
The Dataset class wraps loaded tabular engines and exposes the following properties:
dataframe: The raw underlying DataFrame (Polars or pandas).backend: Indication of engine, returning"polars"or"pandas".schema: The orderedDatasetSchemalist of columns.row_count: Total row dimension of the table.column_count: Total column dimension of the table.dtypes: Mapping of column names to backend dtype strings.source: Local path of the source file, orNoneif in-memory.file_size: Size of the source file in bytes, orNoneif in-memory.
Previewing Data
You can read a clean preview subset of the records using the preview() method:
python
import featuresmith as fsdataset = fs.load("train.parquet")# Get the first 5 records as a backend-specific dataframehead_df = dataset.preview(5)