parameters: (filename)
docstring: creates a spreadsheet with the contents of a csv file
docstring_summary: creates a spreadsheet with the contents of a csv file
docstring_tokens: creates a spreadsheet with the contents of a csv file
function: def read(filename):
      "creates a spreadsheet with the contents of a csv file"
      sp = makeSpreadsheet()
      import csv
      with pyopen(filename, 'rb') as csvfile:
          csvfile = csv.reader(csvfile)
          rn = 1
          for row in csvfile:
              cn = 0
              for c in row[:26]:
                  cl = "abcdefghijklmnopqrstuvwxyz"[cn]
                  #print("setting ",cl+str(rn)," ",c)
                  try:
                      c = int(c)
                  except ValueError:
                      try:
                          c = float(c)
                      except ValueError:
                          c = str(c)
                  setattr(sp.Proxy,cl+str(rn),c)
                  cn += 1
              rn += 1
      print("successfully imported ",filename)
function_tokens: def read ( filename ) : sp = makeSpreadsheet ( ) import csv with pyopen ( filename , 'rb' ) as csvfile : csvfile = csv . reader ( csvfile ) rn = 1 for row in csvfile : cn = 0 for c in row [ : 26 ] : cl = "abcdefghijklmnopqrstuvwxyz" [ cn ] #print("setting ",cl+str(rn)," ",c) try : c = int ( c ) except ValueError : try : c = float ( c ) except ValueError : c = str ( c ) setattr ( sp . Proxy , cl + str ( rn ) , c ) cn += 1 rn += 1 print ( "successfully imported " , filename )