load_pkg_file()
Load data from a package-bundled file into a Polars DataFrame.
Usage
load_pkg_file(
file,
directory="smartclass.data",
)Supports TSV, CSV, and JSON file formats.
Parameters
file: str-
Name of the file to load (e.g., “classes_smarts.tsv”).
directory: str = "smartclass.data"- Defaults to “smartclass.data”.
Returns
DataFrame- DataFrame containing the loaded data.
Raises
DataLoadingError- If the file cannot be loaded or format is unsupported.