I have tried few shell scripts to convert to a HTML table format but I didnt get desired output. Could anyone help here to convert CSV to a HTML table format using Python or
well, I think that the easiest way to do it is.
import pandas as pd csv = pd.read_csv('csv_file.csv') html_table = csv.to_html() f = open('html_file.html', 'w') f.write(html_table) f.close()
try it out!