data_describe.misc.file_ext

is_filetype(filetype: str, extension: str)

Checks if the file extension matches a given file type.

data_describe.misc.file_ext.is_filetype(filetype: str, extension: str) → bool

Checks if the file extension matches a given file type.

Parameters
  • filetype (str) – The type of file. See the enum _FileExtensionTypes

  • extension (str) – The file extension

Returns

True if matching

Return type

bool