Skip to content

Commit

Permalink
style: apply automated linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-reimann authored and github-actions[bot] committed Mar 21, 2023
1 parent 1922f60 commit 8ed98b2
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/safeds/data/tabular/_column.py
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,6 @@ def sum(self) -> float:
return self._column._data.sum()

def variance(self) -> float:

"""
Return the variance of the column. The column has to be numerical.
Expand All @@ -407,7 +406,6 @@ def variance(self) -> float:
return self._column._data.var()

def standard_deviation(self) -> float:

"""
Return the standard deviation of the column. The column has to be numerical.
Expand Down
6 changes: 4 additions & 2 deletions tests/safeds/data/tabular/_row/test_count.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from safeds.data.tabular import Row
from safeds.data.tabular.typing import StringColumnType, IntColumnType, TableSchema
from safeds.data.tabular.typing import IntColumnType, StringColumnType, TableSchema


def test_count() -> None:
row = Row(
[0, "1"],
TableSchema({"testColumn1": IntColumnType(), "testColumn2": StringColumnType()})
TableSchema(
{"testColumn1": IntColumnType(), "testColumn2": StringColumnType()}
),
)
assert row.count() == 2
6 changes: 4 additions & 2 deletions tests/safeds/data/tabular/_row/test_iter.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from safeds.data.tabular import Row
from safeds.data.tabular.typing import TableSchema, IntColumnType, StringColumnType
from safeds.data.tabular.typing import IntColumnType, StringColumnType, TableSchema


def test_iter() -> None:
row = Row(
[0, "1"],
TableSchema({"testColumn1": IntColumnType(), "testColumn2": StringColumnType()})
TableSchema(
{"testColumn1": IntColumnType(), "testColumn2": StringColumnType()}
),
)
assert list(row) == ["testColumn1", "testColumn2"]
6 changes: 4 additions & 2 deletions tests/safeds/data/tabular/_row/test_len.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
from safeds.data.tabular import Row
from safeds.data.tabular.typing import StringColumnType, IntColumnType, TableSchema
from safeds.data.tabular.typing import IntColumnType, StringColumnType, TableSchema


def test_count() -> None:
row = Row(
[0, "1"],
TableSchema({"testColumn1": IntColumnType(), "testColumn2": StringColumnType()})
TableSchema(
{"testColumn1": IntColumnType(), "testColumn2": StringColumnType()}
),
)
assert len(row) == 2

0 comments on commit 8ed98b2

Please sign in to comment.