Prueba simple de Python en el navegador

from pyscript import display # dataset de prueba datos = [ ["CampaƱa","Impresiones","Clicks","CTR"], ["Aire Acondicionado",12000,450,"3.75%"], ["Televisores",18000,520,"2.88%"], ["Refrigeradoras",9500,390,"4.10%"], ["Laptops",15000,610,"4.06%"] ] html = "" for i,row in enumerate(datos): html += "" tag = "th" if i == 0 else "td" for cell in row: html += f"<{tag}>{cell}" html += "" html += "
" display(html, target="tabla")