dcase_util.containers.ListDictContainer.load
- ListDictContainer.load(filename=None, fields=None, csv_header=True, file_format=None, delimiter=None, convert_numeric_fields=True)[source]
Load file
- Parameters
- filenamestr, optional
File path, if None given, filename given to class constructor is used. Default value None
- fieldslist of str, optional
List of column names Default value None
- csv_headerbool, optional
Read field names from first line (header). Used only for CSV formatted files. Default value True
- file_formatFileFormat, optional
Forced file format, use this when there is a miss-match between file extension and file format. Default value None
- delimiterstr, optional
Forced data delimiter for csv format. If None given, automatic delimiter sniffer used. Use this when sniffer does not work. Default value None
- convert_numeric_fieldsbool, optional
Convert int and float fields to correct type. Default value True
- Returns
- self
- Raises
- IOError:
File does not exists or has unknown file format
- ValueError:
No fields or csv_header set for CSV formatted file.