MCPcopy Create free account
hub / github.com/dask/dask / unique

Method unique

dask/dataframe/dask_expr/_collection.py:4303–4312  ·  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

4301 return new_collection(MemoryUsageFrame(self, deep=deep, _index=index))
4302
4303 def unique(self, split_every=None, split_out=True, shuffle_method=None):
4304 """
4305 Return Series of unique values in the object. Includes NA values.
4306
4307 Returns
4308 -------
4309 uniques : Series
4310 """
4311 shuffle_method = _get_shuffle_preferring_order(shuffle_method)
4312 return new_collection(Unique(self, split_every, split_out, shuffle_method))
4313
4314 @derived_from(pd.Series)
4315 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