From d9824749bb678a74563c45965d6b4912b4340a2f Mon Sep 17 00:00:00 2001 From: mohammed Date: Tue, 15 Jul 2025 15:24:52 +0300 Subject: [PATCH] fix: pandas vet error --- docling/models/tesseract_ocr_cli_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docling/models/tesseract_ocr_cli_model.py b/docling/models/tesseract_ocr_cli_model.py index a952b717..c483fa87 100644 --- a/docling/models/tesseract_ocr_cli_model.py +++ b/docling/models/tesseract_ocr_cli_model.py @@ -321,7 +321,7 @@ class TesseractOcrCliModel(BaseOcrModel): def _parse_orientation(df_osd: pd.DataFrame) -> int: # For strictly optimal performance with invariant dataframe format: - mask = df_osd["key"].values == "Orientation in degrees" - orientation_val = df_osd["value"].values[mask][0] + mask = df_osd["key"].to_numpy() == "Orientation in degrees" + orientation_val = df_osd["value"].to_numpy()[mask][0] orientation = parse_tesseract_orientation(orientation_val.strip()) return orientation