_Group.unique

_Group.unique(key=None)[source]

Return a new group containing only unique members.

If a key function is provided, uniqueness is determined by key(member), otherwise by member identity.