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