Skip to content

Commit aec1a41

Browse files
authored
fix: loosen pandas version (#40)
* fix: loosen pandas version Signed-off-by: Panos Vagenas <[email protected]> * add pandas stubs Signed-off-by: Panos Vagenas <[email protected]> * explicitly convert to str Signed-off-by: Panos Vagenas <[email protected]> --------- Signed-off-by: Panos Vagenas <[email protected]>
1 parent 345419f commit aec1a41

File tree

3 files changed

+30
-66
lines changed

3 files changed

+30
-66
lines changed

docling_core/transforms/chunker/hierarchical_chunker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def _triplet_serialize(cls, table) -> Optional[str]:
8383
nrows = table_df.shape[0]
8484
ncols = table_df.shape[1]
8585
texts = [
86-
f"{rows[i]}, {cols[j]} = {table_df.iloc[i, j].strip()}"
86+
f"{rows[i]}, {cols[j]} = {str(table_df.iloc[i, j]).strip()}"
8787
for i in range(1, nrows)
8888
for j in range(1, ncols)
8989
]

poetry.lock

Lines changed: 27 additions & 63 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ pydantic = "^2.6.0"
5252
jsonref = "^1.1.0"
5353
json-schema-for-humans = "^1.0.0"
5454
tabulate = "^0.9.0"
55-
pandas = "^2.2.2"
55+
pandas = "^2.1.4"
5656

5757
[tool.poetry.group.dev.dependencies]
5858
black = "^24.4.2"
@@ -68,6 +68,7 @@ pep8-naming = "^0.13.2"
6868
jsondiff = "^2.0.0"
6969
types-setuptools = "^70.3.0"
7070
python-semantic-release = "^7.32.2"
71+
pandas-stubs = "^2.1.4.231227"
7172

7273
[tool.setuptools.packages.find]
7374
where = ["docling_core/resources/schemas"]
@@ -117,7 +118,6 @@ module = [
117118
"jsonref.*",
118119
"jsonschema.*",
119120
"json_schema_for_humans.*",
120-
"pandas.*",
121121
"requests.*",
122122
"tabulate.*",
123123
"yaml.*",

0 commit comments

Comments
 (0)