load_pkg_file

load_pkg_file(file: str, directory: str = 'smartclass.data') DataFrame[source]

Load data from a package file into a Polars DataFrame.

Parameters:
  • file (str) – The name of the file to load.

  • directory (str) – The directory of the file to load. Default to smartclass.data

Raises:

ValueError – If the loading of the file failed.

Returns:

A Polars DataFrame containing the loaded data.

Return type:

DataFrame