diff --git a/modelskill/comparison/_collection.py b/modelskill/comparison/_collection.py index e1bf6c7a0..b960b2673 100644 --- a/modelskill/comparison/_collection.py +++ b/modelskill/comparison/_collection.py @@ -715,7 +715,7 @@ def weighted_mean(x): # group by by = cmp._mean_skill_by(skilldf, mod_names, var_names) - agg = {"n": np.sum} + agg = {"n": "sum"} for metric in metrics: # type: ignore agg[metric.__name__] = weighted_mean # type: ignore res = skilldf.groupby(by).agg(agg) diff --git a/pyproject.toml b/pyproject.toml index e78c8c488..7a79d9bd4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -41,9 +41,6 @@ classifiers = [ "Topic :: Scientific/Engineering", ] -[project.scripts] -modelskill = "modelskill.cli:report" - [project.optional-dependencies] dev = ["pytest", "sphinx==4.5.0", # pin version to work with sphinx-book-theme