Skip to primary content

Phaisarn

Phaisarn

Main menu

  • Home

Post navigation

← Previous Next →

CSV to Html table

Posted on July 20, 2022 by jack
  • Converting CSV to HTML table in Python – CodeSpeedy

Using pandas

Pandas is very suitable to work with data that is in structural form. It is fast and provides expressive data structures.

Installation

pip install pandas

Python code

import pandas 
file = pandas.read_csv("Student.csv")
file.to_html("StudentTable.html") 
This entry was posted in Python3 by jack. Bookmark the permalink.
Proudly powered by WordPress