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

Method nunique

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

Source from the content-addressed store, hash-verified

3844
3845 @derived_from(pd.DataFrame)
3846 def nunique(self, axis=0, dropna=True, split_every=False):
3847 if axis == 1:
3848 return new_collection(expr.NUniqueColumns(self, axis=axis, dropna=dropna))
3849 else:
3850 return concat(
3851 [
3852 col.nunique(dropna=dropna, split_every=split_every).to_series(name)
3853 for name, col in self.items()
3854 ]
3855 )
3856
3857 def quantile(self, q=0.5, axis=0, numeric_only=False, method="default"):
3858 """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