I want to convert to a single html file, several values that are inputted from a webform. This the code I have right now
formData = cgi.FieldStorage()
my_file = formData.getvalue("my_filename")
my_col = formData.getlist("column")
print(my_col) #list
for item in my_col:
csvdata = pandas.read_csv(my_file, usecols=[item])
#cd = csvdata.to_html()
#...
Obviously this only converts to html the last item in the list. How can I convert every item in my_col list in a single html file?