Skip to content

Commit 14ffff8

Browse files
Support pandas 2.2.0
Fixes a unit test to support pandas 2.2.0+. The pandas release fixes an sorting bug with pandas-dev/pandas#54611. This commit changes the expected results accordingly.
1 parent ac54ddb commit 14ffff8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies = [
2525
"numpy >=1.26.0",
2626
"odmlib >=0.1.4",
2727
"openpyxl >=3.1.5",
28-
"pandas >=2.1.4, <2.2.0",
28+
"pandas >=2.1.4, <3.0.0",
2929
"psutil >=6.1.1",
3030
"pyinstaller >=6.11.0",
3131
"pympler >=1.1",

tests/unit/test_dataset_builders/test_dataset_metadata_define_dataset_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def test_dataset_metadata_define_dataset_builder(dataset_path):
151151
expected_results["dm.xpt"],
152152
expected_results["ae.xpt"],
153153
]
154-
).astype(object)
154+
).astype(object).sort_values("dataset_location").reset_index(drop=True)
155155

156156
result_df = result.data[expected_df.columns].reset_index(drop=True)
157157

0 commit comments

Comments
 (0)