def _detect_delimiter(self):
candidate_value = '<STR_LIT:U+002C>'<EOL>candidate_count = <NUM_LIT:0><EOL>for delimiter in UniversalCsvReader.delimiters:<EOL><INDENT>count = self._sample.count(delimiter)<EOL>if count > candidate_count:<EOL><INDENT>candidate_value = delimiter<EOL>candidate_count = count<EOL><DEDENT><DEDENT>self._formatting_parameters['<STR_LIT>'] = candidate_value<EOL>
Detects the field delimiter in the sample data.