| 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 |