It's possible to create HTML page from a CSV file, with the following:
import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
df = pd.read_csv('../data.csv',delimiter=';', engine='python')
df.to_html('csv.html')
I would like to make that HTML to respect some CSS present in csv.css
. One way to get this is to manually edit csv.html
head
, inserting:
<head><link rel="stylesheet" type="text/css" href="csv.css"></head>
Instead of doing it manually, how one can get there programmatically (using Python)?