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