def to_table_data(self):
self._validate_source_data()<EOL>self._loader.inc_table_count()<EOL>headers = sorted(six.viewkeys(self._buffer))<EOL>yield TableData(<EOL>self._make_table_name(),<EOL>headers,<EOL>zip(*[self._buffer.get(header) for header in headers]),<EOL>dp_extractor=self._loader.dp_extractor,<EOL>type_hints=self._extract_type_hints(),<EOL>)<EOL>
:raises ValueError:
:raises pytablereader.error.ValidationError: