def to_table_data(self):
self._validate_source_data()<EOL>self._loader.inc_table_count()<EOL>yield TableData(<EOL>self._make_table_name(),<EOL>["<STR_LIT:key>", "<STR_LIT:value>"],<EOL>[record for record in self._buffer.items()],<EOL>dp_extractor=self._loader.dp_extractor,<EOL>type_hints=self._extract_type_hints(),<EOL>)<EOL>
:raises ValueError:
:raises pytablereader.error.ValidationError: