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

add GroupBy #3

@h-dav

Description

@h-dav
data = sorted(data, key=keyfunc)
for k, g in groupby(data, keyfunc):
    groups.append(list(g))      # Store group iterator as a list
    uniquekeys.append(k)
input ("AAABBCD")
result
k = "A"
g = "AAA"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions