首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >我的代码在Python中运行良好,如何从HTML传递参数值?

我的代码在Python中运行良好,如何从HTML传递参数值?
EN

Stack Overflow用户
提问于 2020-08-23 22:11:59
回答 1查看 48关注 0票数 1

下面的代码在python中运行良好,但是如何从html传递参数值呢?

代码语言:javascript
运行
复制
import pandas as pd
import pandas_profiling

# read the file
df = pd.read_csv('Dataprofile.csv')

# run the profile report
profile = df.profile_report(title='Pandas Profiling Report')

# save the report as html file
profile.to_file(output_file="pandas_profiling1.html")

# save the report as json file
profile.to_file(output_file="pandas_profiling2.json")
EN

回答 1

Stack Overflow用户

发布于 2020-08-23 22:40:33

使用to_html而不是to_file。df.to_html("Table.html")您可以在HTML文件中使用CSS设置样式。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/63547940

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档