Unique¶
- class grizli.utils.Unique(array, verbose=True)[source]¶
Bases:
object
Helper for unique items in an array
- Parameters:
- arrayarray-like
Data to parse, generally strings but can be anything that can be parsed by
numpy.unique
- Attributes:
- dimint
size
of inputarray
- valueslist
Unique elements of
array
- indiceslist
Integer list length of
array
with the indices ofvalues
for each element- countslist
Counts of each element of
values
Methods
__iter__
()Iterable over
values
attribute__get__(key)
Return a
bool
array where entries ofarray
match the specifiedkey
Attributes Summary
Number of unique
values
Methods Summary
count
(key)Get occurrences count of a particular
value
info
([sort_counts])Print a summary
Attributes Documentation
- N¶
Number of unique
values
Methods Documentation