如何在xlsxwriter中使用python添加callout?

问题描述 投票:1回答:1

嗨,有什么办法来添加一个呼出框在excel表.something like https:/www.officetooltips.comword_2016tipsadding_callouts_to_objects.html

我正在使用xlsxwriter从一个数据框架导出excel。

任何帮助:)

python-3.x pandas xlsxwriter
1个回答
1
投票

要使用XlsxWriter与Pandas你指定它作为Excel编写引擎。

import pandas as pd

# Create a Pandas dataframe from the data.
df = pd.DataFrame({'Data': [10, 20, 30, 20, 15, 30, 45]})

# Create a Pandas Excel writer using XlsxWriter as the engine.
writer = pd.ExcelWriter('pandas_simple.xlsx', engine='xlsxwriter')

# Convert the dataframe to an XlsxWriter Excel object.
df.to_excel(writer, sheet_name='Sheet1')

# Close the Pandas Excel writer and output the Excel file.
writer.save()
最新问题
© www.soinside.com 2019 - 2024. All rights reserved.