MCPcopy
hub / github.com/dask/dask / unique

Method unique

dask/dataframe/dask_expr/_collection.py:4319–4328  ·  view source on GitHub ↗

Return Series of unique values in the object. Includes NA values. Returns ------- uniques : Series

(self, split_every=None, split_out=True, shuffle_method=None)

Source from the content-addressed store, hash-verified

4317 return new_collection(MemoryUsageFrame(self, deep=deep, _index=index))
4318
4319 def unique(self, split_every=None, split_out=True, shuffle_method=None):
4320 """
4321 Return Series of unique values in the object. Includes NA values.
4322
4323 Returns
4324 -------
4325 uniques : Series
4326 """
4327 shuffle_method = _get_shuffle_preferring_order(shuffle_method)
4328 return new_collection(Unique(self, split_every, split_out, shuffle_method))
4329
4330 @derived_from(pd.Series)
4331 def nunique(self, dropna=True, split_every=False, split_out=True):

Callers 15

test_hash_split_uniqueFunction · 0.95
from_collectionsMethod · 0.45
unpack_collectionsFunction · 0.45
ensure_dictFunction · 0.45
_nunique_df_chunkFunction · 0.45
_nunique_df_combineFunction · 0.45
_unique_aggregateFunction · 0.45
uniqueFunction · 0.45
_lowerMethod · 0.45
_calculate_divisionsFunction · 0.45
as_knownMethod · 0.45

Calls 3

new_collectionFunction · 0.90
UniqueClass · 0.90

Tested by 15

test_hash_split_uniqueFunction · 0.76
test_uniqueFunction · 0.36
test_uniqueFunction · 0.36
test_unique_baseFunction · 0.36
test_partition_onFunction · 0.36
test_partition_on_stringFunction · 0.36