From 533a3528e1fa4741b052486ffa66b15b5129d5da Mon Sep 17 00:00:00 2001 From: Lars Reimann Date: Mon, 27 Mar 2023 18:58:13 +0200 Subject: [PATCH] feat: compatibility with `safe-ds` v0.6.0 --- docs/examples/titanic.ipynb | 2 +- poetry.lock | 8 ++++---- pyproject.toml | 2 +- .../tabular/_house_sales/test_house_sales.py | 2 +- tests/safeds_examples/tabular/_titanic/test_titanic.py | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/examples/titanic.ipynb b/docs/examples/titanic.ipynb index f6053da..6126daf 100644 --- a/docs/examples/titanic.ipynb +++ b/docs/examples/titanic.ipynb @@ -116,7 +116,7 @@ "execution_count": null, "outputs": [], "source": [ - "titanic_correlation = titanic.keep_columns([\n", + "titanic_correlation = titanic.keep_only_columns([\n", " \"age\",\n", " \"siblings_spouses\",\n", " \"parents_children\",\n", diff --git a/poetry.lock b/poetry.lock index d407910..667dbbd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2827,14 +2827,14 @@ files = [ [[package]] name = "safe-ds" -version = "0.5.0" +version = "0.6.0" description = "A user-friendly library for Data Science in Python." category = "main" optional = false python-versions = ">=3.10,<4.0" files = [ - {file = "safe_ds-0.5.0-py3-none-any.whl", hash = "sha256:0c20a8ccfa0592db4524984341f348a6da20eaea4bae0decf5a8bdbf641ed4f9"}, - {file = "safe_ds-0.5.0.tar.gz", hash = "sha256:9a33f101a38bb6957a2bbff0f668d292f28580269e7d4ec1255c4806e1b33710"}, + {file = "safe_ds-0.6.0-py3-none-any.whl", hash = "sha256:6299ef1b0ed90b2b3f18129560dd1d496c4c3561fb9ef64131f4bff6269ee1f7"}, + {file = "safe_ds-0.6.0.tar.gz", hash = "sha256:411e12d3a89ce76a23a37cebd972aeaa6629a04bb7821dbedb5f4eeb85e50435"}, ] [package.dependencies] @@ -3275,4 +3275,4 @@ files = [ [metadata] lock-version = "2.0" python-versions = "^3.10" -content-hash = "a91dd6f2dfc40096e45e1838b250ff9873a7f3383820180b64b8d0796d3b8cf5" +content-hash = "3da2977df6a68b16ef4eea0e11229429c2e52187a868acee46e934bf035203b0" diff --git a/pyproject.toml b/pyproject.toml index 55c06f8..e0d4939 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,7 +14,7 @@ packages = [ [tool.poetry.dependencies] python = "^3.10" -safe-ds = ">=0.5,<0.6" +safe-ds = ">=0.6,<0.7" [tool.poetry.group.dev.dependencies] pytest = "^7.2.1" diff --git a/tests/safeds_examples/tabular/_house_sales/test_house_sales.py b/tests/safeds_examples/tabular/_house_sales/test_house_sales.py index b320f29..3e6ca5e 100644 --- a/tests/safeds_examples/tabular/_house_sales/test_house_sales.py +++ b/tests/safeds_examples/tabular/_house_sales/test_house_sales.py @@ -48,7 +48,7 @@ def test_schema(self, house_sales: Table) -> None: ) def test_columns_with_missing_values(self, house_sales: Table) -> None: - actual_column_names = {column.name for column in house_sales.list_columns_with_missing_values()} + actual_column_names = {column.name for column in house_sales.to_columns() if column.has_missing_values()} assert actual_column_names == set() diff --git a/tests/safeds_examples/tabular/_titanic/test_titanic.py b/tests/safeds_examples/tabular/_titanic/test_titanic.py index fd3be72..6461b9a 100644 --- a/tests/safeds_examples/tabular/_titanic/test_titanic.py +++ b/tests/safeds_examples/tabular/_titanic/test_titanic.py @@ -42,7 +42,7 @@ def test_schema(self, titanic: Table) -> None: ) def test_columns_with_missing_values(self, titanic: Table) -> None: - actual_column_names = {column.name for column in titanic.list_columns_with_missing_values()} + actual_column_names = {column.name for column in titanic.to_columns() if column.has_missing_values()} assert actual_column_names == {"age", "port_embarked", "fare", "cabin"}