dcase_util.containers.MetaDataContainer.save

MetaDataContainer.save(filename=None, fields=None, csv_header=True, file_format=None, delimiter='\t', **kwargs)[source]

Save content to csv file

Parameters
filenamestr

Filename. If none given, one given for class constructor is used. Default value None

fieldslist of str

Fields in correct order, if none given all field in alphabetical order will be outputted. Used only for CSV formatted files. Default value None

csv_headerbool

In case of CSV formatted file, first line will contain field names. Names are taken from fields parameter. 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

Delimiter to be used when saving data. Default value ‘ ‘

Returns
self