MCPcopy Index your code
hub / github.com/KnowledgeXLab/LeanRAG / write_xlsx

Function write_xlsx

tools/io_file.py:675–685  ·  view source on GitHub ↗

写入Excel文件。 参数: - file_path (str): 文件路径。 - data (DataFrame): 要写入的Excel数据。 - encoding (str): 写入文件的编码格式,默认为 'utf-8'。

(file_path, data, encoding='utf-8')

Source from the content-addressed store, hash-verified

673
674
675def write_xlsx(file_path, data, encoding='utf-8'):
676 """
677 写入Excel文件。
678
679 参数:
680 - file_path (str): 文件路径。
681 - data (DataFrame): 要写入的Excel数据。
682 - encoding (str): 写入文件的编码格式,默认为 'utf-8'
683 """
684 logger.info(f"写入Excel文件: {file_path}")
685 data.to_excel(file_path, index=False)
686
687
688def write_markdown(file_path, data, mode, encoding='utf-8'):

Callers 1

writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected