如何使用Python Pandas/XLSX Writer将数据与数据之间的边界设置为Excel
我正在尝试与Python Pandas的边界一起格式化Excel表格,但没有运气,任何人都可以提供帮助。
我有这样的数据:
我希望以这种格式:
I am trying to format the excel sheet with the borders with python pandas, but no luck, can anyone please assist.
I have data like this:
I want this in this format:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它并不简单,您必须遍历数据框架,然后将格式添加到每个单元格中。
It is not straightforward, You have to iterate through the dataframe and add the format to each cell.