def picture(self, row):
template = '<STR_LIT>'<EOL>types = (type(None), binary_type, int)<EOL>def guess_type(v):<EOL><INDENT>try:<EOL><INDENT>v = text_type(v).strip()<EOL><DEDENT>except ValueError:<EOL><INDENT>v = binary_type(v).strip()<EOL><DEDENT>if not bool(v):<EOL><INDENT>return type(None)<EOL><DEDENT>for t in (float, int, binary_type, text_type):<EOL><INDENT>try:<EOL><INDENT>return type(t(v))<EOL><DEDENT>except:<EOL><INDENT>pass<EOL><DEDENT><DEDENT><DEDENT>def p(e):<EOL><INDENT>tm = t = None<EOL>try:<EOL><INDENT>t = guess_type(e)<EOL>tm = self.type_map.get(t, t)<EOL>return template[types.index(tm)]<EOL><DEDENT>except ValueError as e:<EOL><INDENT>raise ValueError("<STR_LIT>".format(t, tm, types, e))<EOL><DEDENT><DEDENT>return '<STR_LIT>'.join(p(e) for e in row)<EOL>
Create a simplified character representation of the data row, which can be pattern matched
        with a regex