Skip to content
This repository has been archived by the owner on Mar 11, 2024. It is now read-only.

Commit

Permalink
fix metadata tests for polars > 0.18
Browse files Browse the repository at this point in the history
  • Loading branch information
danielgafni committed Sep 7, 2023
1 parent 72e4418 commit c6de3c8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
23 changes: 13 additions & 10 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions tests/test_upath_io_managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ def upstream() -> pl.DataFrame:
from packaging.version import Version

if Version(pl.__version__) >= Version("0.18.0"):
expected_stats["a"]["50%"] = expected_stats["a"].pop("median")
expected_stats["b"]["50%"] = expected_stats["b"].pop("median")
expected_stats["a"].pop("median")
expected_stats["a"]["50%"] = 1.0
expected_stats["b"].pop("median")
expected_stats["b"]["50%"] = "null"

assert DeepDiff(stats, expected_stats) == {}

Expand Down

0 comments on commit c6de3c8

Please sign in to comment.