MCPcopy
hub / github.com/dask/dask / nunique

Method nunique

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

Source from the content-addressed store, hash-verified

3814
3815 @derived_from(pd.DataFrame)
3816 def nunique(self, axis=0, dropna=True, split_every=False):
3817 if axis == 1:
3818 return new_collection(expr.NUniqueColumns(self, axis=axis, dropna=dropna))
3819 else:
3820 return concat(
3821 [
3822 col.nunique(dropna=dropna, split_every=split_every).to_series(name)
3823 for name, col in self.items()
3824 ]
3825 )
3826
3827 def quantile(self, q=0.5, axis=0, numeric_only=False, method="default"):
3828 """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