packages = [
"pandas",
"jinja2"
]
Hello World!
This is a test To see how my html code is.
This space below will become blank as a few seconds is taken to render the dataframe. Be patient ...
import pandas as pd
#import jinja2
from pyodide.http import open_url
url = 'penguins.csv'
df = pd.read_csv(open_url(url))
#print(df.head())
#print(df.to_html())
Element("pandas-output").element.style.display = "block"
display (df.head(39).style.format(precision=2), target="pandas-output-inner", append="False")