From b418ce56433f552c0d23d7a4ea5b5692a438f558 Mon Sep 17 00:00:00 2001 From: Kevin Hu Date: Fri, 28 Feb 2025 16:09:12 +0800 Subject: [PATCH] Fix table parser issue. (#5482) ### What problem does this PR solve? #1475 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue) --- rag/app/table.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/app/table.py b/rag/app/table.py index b35cb105e..18620810e 100644 --- a/rag/app/table.py +++ b/rag/app/table.py @@ -223,7 +223,7 @@ def chunk(filename, binary=None, from_page=0, to_page=10000000000, continue if not str(row[clmns[j]]): continue - if pd.isna(row[clmns[j]]): + if not isinstance(row[clmns[j]], pd.Series) and pd.isna(row[clmns[j]]): continue fld = clmns_map[j][0] d[fld] = row[clmns[j]] if clmn_tys[j] != "text" else rag_tokenizer.tokenize(