[fix]parsed excel document error:float division by zero

This commit is contained in:
lixiangcheng1
2025-12-30 19:05:29 +08:00
parent 909c536b47
commit 775d36b16b

View File

@@ -69,7 +69,8 @@ class RAGExcelParser:
@staticmethod
def _dataframe_to_workbook(df):
# if contains multiple sheets use _dataframes_to_workbook
if isinstance(df, dict) and len(df) > 1:
# if isinstance(df, dict) and len(df) > 1:
if isinstance(df, dict):
return RAGExcelParser._dataframes_to_workbook(df)
df = RAGExcelParser._clean_dataframe(df)