Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/safeds/data/tabular/containers/_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,7 @@ def filter_rows(self, query: Callable[[Row], bool]) -> Table:

_T = TypeVar("_T")

def group_rows_by(self, key_selector: Callable[[Row], _T]) -> dict[_T, Table]:
def group_rows(self, key_selector: Callable[[Row], _T]) -> dict[_T, Table]:
"""
Return a dictionary with copies of the output tables as values and the keys from the key_selector.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
ids=["select by row1", "different types in column", "empty table", "table with no rows"],
)
def test_should_group_rows(table: Table, selector: Callable, expected: dict) -> None:
out = table.group_rows_by(selector)
out = table.group_rows(selector)
assert out == expected