def _generateFile(filename, data):
<EOL>print("<STR_LIT>" % (filename))<EOL>numRecords, numFields = data.shape<EOL>fields = [('<STR_LIT>'%(i+<NUM_LIT:1>), '<STR_LIT:float>', '<STR_LIT>') for i in range(numFields)]<EOL>outFile = File(filename, fields)<EOL>for i in range(numRecords):<EOL><INDENT>outFile.write(data[i].tolist())<EOL><DEDENT>outFile.close()<EOL>
Parameters:
----------------------------------------------------------------
filename:         name of .csv file to generate