MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / read_xlsx

Function read_xlsx

tools/io_file.py:265–277  ·  view source on GitHub ↗

读取Excel文件。 参数: - file_path (str): 文件路径。 - encoding (str): 文件编码格式,默认为 'utf-8'。 返回: - DataFrame: 读取的Excel文件内容。

(file_path, encoding='utf-8')

Source from the content-addressed store, hash-verified

263
264
265def read_xlsx(file_path, encoding='utf-8'):
266 """
267 读取Excel文件。
268
269 参数:
270 - file_path (str): 文件路径。
271 - encoding (str): 文件编码格式,默认为 'utf-8'
272
273 返回:
274 - DataFrame: 读取的Excel文件内容。
275 """
276 logger.info(f"读取Excel文件: {file_path}")
277 return pd.read_excel(file_path)
278
279
280def read_markdown(file_path, encoding='utf-8'):

Callers 1

readFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected