Skip to content

Commit

Permalink
feat: compatibility with safe-ds v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann committed Mar 27, 2023
1 parent 4bc0b53 commit 533a352
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion docs/examples/titanic.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
2 changes: 1 addition & 1 deletion tests/safeds_examples/tabular/_titanic/test_titanic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}

Expand Down

0 comments on commit 533a352

Please sign in to comment.