unique#

Unique-related operations.

The skrough.unique module delivers helper functions for unique-related computations. Currently all operations are simple wrappers around numpy.unique() but they are here to provide interfaces that the rest of the code uses.

Functions

get_rows_nunique(x)

Compute the number of unique rows.

get_uniques(values)

Get unique values.

get_uniques_and_compacted(values)

Get unique values and compacted version of an input array.

get_uniques_and_positions(values)

Get unique elements of an array and indices of first occurrences of these values.

get_uniques_positions(values)

Get positions of first occurrences of unique values.