错误提示:
C:XXXXX\Programs\Python\Python38\lib\site-packages\xlsxwriter\worksheet.py:1179: UserWarning: Ignoring URL 'XXXXX' since it exceeds Excel's limit of 65,530 URLS per worksheet.
warn("Ignoring URL '%s' since it exceeds Excel's limit of "
def df_url_to_str(df,excel_name):
writer=pd.ExcelWriter(excel_name, engine='xlsxwriter',
options={'strings_to_urls': False})
df.to_excel(writer)
writer.close()
本文介绍了一个在使用Python的xlsxwriter库导出包含大量URL的数据到Excel文件时遇到的问题。当URL数量超过65,530个时,会出现警告并忽略多余的URL。文章提供了触发警告的代码示例,并探讨了解决方案。
31万+

被折叠的 条评论
为什么被折叠?



