Skip to content

Commit

Permalink
Bump to 0.4.7 and fix polars (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
canimus authored Jul 19, 2023
1 parent 0e9c121 commit 93ed555
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cuallee/polars_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,8 @@ def summary(check: Check, dataframe: pl.DataFrame):
}

def _calculate_violations(result, nrows):
if isinstance(result, pl.DataFrame):
result = first(result.row(0))

if isinstance(result, (bool, np.bool_)):
if result:
Expand All @@ -383,6 +385,8 @@ def _calculate_violations(result, nrows):
return nrows - result

def _calculate_pass_rate(result, nrows):
if isinstance(result, pl.DataFrame):
result = first(result.row(0))

if isinstance(result, (bool, np.bool_)):
if result:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cuallee"
version = "0.4.6"
version = "0.4.7"
authors = [
{ name="Virginie Grosboillot", email="[email protected]" },
{ name="Herminio Vazquez", email="[email protected]"}
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[metadata]
name = cuallee
version = 0.4.6
version = 0.4.7
[options]
packages = find:

0 comments on commit 93ed555

Please sign in to comment.