def as_csv(self):
from io import StringIO<EOL>s = StringIO()<EOL>w = csv.writer(s)<EOL>for row in self.rows:<EOL><INDENT>w.writerow(row)<EOL><DEDENT>return s.getvalue()<EOL>
Return a CSV representation as a string