def write(self, strm, delim, verbose=False):
if verbose:<EOL><INDENT>sys.stderr.write("<STR_LIT>")<EOL><DEDENT>out_strm = strm<EOL>if isinstance(out_strm, basestring):<EOL><INDENT>out_strm = open(out_strm)<EOL><DEDENT>if self.header is not None:<EOL><INDENT>out_strm.write(delim.join(self.header))<EOL><DEDENT>max_col_len = len(max(self.frame, key=len))<EOL>for i in range(<NUM_LIT:0>, max_col_len):<EOL><INDENT>for j in range(<NUM_LIT:0>, len(self.frame)):<EOL><INDENT>if j != <NUM_LIT:0>:<EOL><INDENT>out_strm.write(delim)<EOL><DEDENT>out_strm.write(str(self.frame[j][i]))<EOL><DEDENT>out_strm.write("<STR_LIT:\n>")<EOL><DEDENT>
Write this data frame to a stream or file.

:param strm:     stream to write to; can also be a string, in which case we
                 treat it as a filename and to open that file for writing
                 to.
:param delim:    delimiter to use between columns.
:param verbose:  if True, output progress messages to stderr.