【发布时间】:2023-01-25 19:52:38
【问题描述】:
标签: python-3.x pandas dataframe
标签: python-3.x pandas dataframe
import pandas as pd
from IPython.display import HTML
result = {}.to_html # replace the brackets with the variable of your dataframe
print(result)
# If you want the HTML output in a file:
f = open('index.html', 'w')
f.write(result)
f.close()
【讨论】: