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

Method nunique

dask/dataframe/dask_expr/_collection.py:3814–3823  ·  view source on GitHub ↗
(self, axis=0, dropna=True, split_every=False)

Source from the content-addressed store, hash-verified

3812
3813 @derived_from(pd.DataFrame)
3814 def nunique(self, axis=0, dropna=True, split_every=False):
3815 if axis == 1:
3816 return new_collection(expr.NUniqueColumns(self, axis=axis, dropna=dropna))
3817 else:
3818 return concat(
3819 [
3820 col.nunique(dropna=dropna, split_every=split_every).to_series(name)
3821 for name, col in self.items()
3822 ]
3823 )
3824
3825 def quantile(self, q=0.5, axis=0, numeric_only=False, method="default"):
3826 """Approximate row-wise and precise column-wise quantiles of DataFrame

Callers 1

test_nuniqueFunction · 0.95

Calls 5

itemsMethod · 0.95
new_collectionFunction · 0.90
concatFunction · 0.70
to_seriesMethod · 0.45
nuniqueMethod · 0.45

Tested by 1

test_nuniqueFunction · 0.76