def sample(self):
        '''Returns the stream's rows used as sample.

        These sample rows are used internally to infer characteristics of the
        source file (e.g. encoding, headers, ...).
        '''
        sample = []
        iterator = iter(self.__sample_extended_rows)
        iterator = self.__apply_processors(iterator)
        for row_number, headers, row in iterator:
            sample.append(row)
        return sample
def sample ( self ) : sample = [ ] iterator = iter ( self . __sample_extended_rows ) iterator = self . __apply_processors ( iterator ) for row_number , headers , row in iterator : sample . append ( row ) return sample
Returns the stream's rows used as sample.

        These sample rows are used internally to infer characteristics of the
        source file (e.g. encoding, headers, ...).