Skip to content

Instantly share code, notes, and snippets.

@cntrump
Created July 27, 2022 11:05
Show Gist options
  • Save cntrump/16af5d01814951a3ab7b0d3f52efbf44 to your computer and use it in GitHub Desktop.
Save cntrump/16af5d01814951a3ab7b0d3f52efbf44 to your computer and use it in GitHub Desktop.
CSV to HTML table
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import pandas as pd
csv = pd.read_csv("codes.csv", engine = 'c')
csv.to_html("codes.html", index = False, justify='left')
@cntrump
Copy link
Author

cntrump commented Jul 27, 2022

Install pandas:

pip3 install pandas 

@cntrump
Copy link
Author

cntrump commented Jul 27, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment