mlrun.package.packagers.pandas_packagers.PandasSupportedFormat#

class mlrun.package.packagers.pandas_packagers.PandasSupportedFormat[source]#

Bases: SupportedFormat[_Formatter]

Library of Pandas formats (file extensions) supported by the Pandas packagers.

Attributes

CSV

FEATHER

H5

HTML

JSON

ORC

PARQUET

XLSX

XML

CSV = 'csv'#
FEATHER = 'feather'#
H5 = 'h5'#
HTML = 'html'#
JSON = 'json'#
ORC = 'orc'#
PARQUET = 'parquet'#
XLSX = 'xlsx'#
XML = 'xml'#

Methods

__init__()

get_all_formats()

Get all supported formats.

get_format_handler(fmt)

Get the format handler to the provided format (file extension):

match_format(path)

Try to match one of the available formats this class holds to a given path.

__init__()#
classmethod get_all_formats() list[str]#

Get all supported formats.

Returns:

A list of all the supported formats.

classmethod get_format_handler(fmt: str) type[FileHandlerType]#

Get the format handler to the provided format (file extension):

Parameters:

fmt -- The file extension to get the corresponding handler.

Returns:

The handler class.

classmethod match_format(path: str) str | None#

Try to match one of the available formats this class holds to a given path.

Parameters:

path -- The path to match the format to.

Returns:

The matched format if found and None otherwise.