Skip to main content

module aixplain.modules.file


class File

method __init__

__init__(
path: Union[str, Path],
extension: Union[str, FileType],
data_split: Optional[DataSplit] = None,
compression: Optional[str] = None
)None

File Class

Description: File where samples of a data is stored in

Args:

  • path (Union[Text, pathlib.Path]): File path
  • extension (Union[Text, FileType]): File extension (e.g. CSV, TXT, etc.)
  • data_split (Optional[DataSplit], optional): Data split of the file. Defaults to None.
  • compression (Optional[Text], optional): Compression extension (e.g., .gz). Defaults to None.