Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.

Commit b4f89e1

Browse files
authored
feat: compatibility with safe-ds v0.6.0 (#40)
### Summary of Changes Integrate API changes of `safe-ds` v0.6.0.
1 parent 4bc0b53 commit b4f89e1

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

docs/examples/titanic.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
"execution_count": null,
117117
"outputs": [],
118118
"source": [
119-
"titanic_correlation = titanic.keep_columns([\n",
119+
"titanic_correlation = titanic.keep_only_columns([\n",
120120
" \"age\",\n",
121121
" \"siblings_spouses\",\n",
122122
" \"parents_children\",\n",

poetry.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ packages = [
1414

1515
[tool.poetry.dependencies]
1616
python = "^3.10"
17-
safe-ds = ">=0.5,<0.6"
17+
safe-ds = ">=0.6,<0.7"
1818

1919
[tool.poetry.group.dev.dependencies]
2020
pytest = "^7.2.1"

tests/safeds_examples/tabular/_house_sales/test_house_sales.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def test_schema(self, house_sales: Table) -> None:
4848
)
4949

5050
def test_columns_with_missing_values(self, house_sales: Table) -> None:
51-
actual_column_names = {column.name for column in house_sales.list_columns_with_missing_values()}
51+
actual_column_names = {column.name for column in house_sales.to_columns() if column.has_missing_values()}
5252

5353
assert actual_column_names == set()
5454

tests/safeds_examples/tabular/_titanic/test_titanic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def test_schema(self, titanic: Table) -> None:
4242
)
4343

4444
def test_columns_with_missing_values(self, titanic: Table) -> None:
45-
actual_column_names = {column.name for column in titanic.list_columns_with_missing_values()}
45+
actual_column_names = {column.name for column in titanic.to_columns() if column.has_missing_values()}
4646

4747
assert actual_column_names == {"age", "port_embarked", "fare", "cabin"}
4848

0 commit comments

Comments
 (0)