CSV to HTML Table in Python
I recently wrote a quick script to convert CSV files of the form:
into nice HTML displays.
- Open the CSV file for reading
- Parse each line of the CSV file
- Each line of the CSV file => 1 row in the HTML file table
- repeat 2 and 3
The code is here
Hope it is useful! Suggestions to improve it welcome.
PS: Useful tips for handling CSV files in Python is here