def dos_from_table(table, header=None):
start_row = <NUM_LIT:0><EOL>if not table:<EOL><INDENT>return table<EOL><DEDENT>if not header:<EOL><INDENT>header = table[<NUM_LIT:0>]<EOL>start_row = <NUM_LIT:1><EOL><DEDENT>header_list = header<EOL>if header and isinstance(header, basestring):<EOL><INDENT>header_list = header.split('<STR_LIT:\t>')<EOL>if len(header_list) != len(table[<NUM_LIT:0>]):<EOL><INDENT>header_list = header.split('<STR_LIT:U+002C>')<EOL><DEDENT>if len(header_list) != len(table[<NUM_LIT:0>]):<EOL><INDENT>header_list = header.split('<STR_LIT:U+0020>')<EOL><DEDENT><DEDENT>ans = {}<EOL>for i, k in enumerate(header):<EOL><INDENT>ans[k] = [row[i] for row in table[start_row:]]<EOL><DEDENT>return ans<EOL>
Produce dictionary of sequences from sequence of sequences, optionally with a header "row".

    >>> dos_from_table([['hello', 'world'], [1, 2], [3,4]]) == {'hello': [1, 3], 'world': [2, 4]}
    True