Approximate number of unique rows. This method uses the HyperLogLog algorithm for cardinality estimation to compute the approximate number of unique rows. The approximate error is 0.406%. Parameters ---------- split_every : int, optional
(self, split_every=None)
| 2120 | return self.expr.align(other.expr, join, axis, fill_value) |
| 2121 | |
| 2122 | def nunique_approx(self, split_every=None): |
| 2123 | """Approximate number of unique rows. |
| 2124 | |
| 2125 | This method uses the HyperLogLog algorithm for cardinality |
| 2126 | estimation to compute the approximate number of unique rows. |
| 2127 | The approximate error is 0.406%. |
| 2128 | |
| 2129 | Parameters |
| 2130 | ---------- |
| 2131 | split_every : int, optional |
| 2132 | Group partitions into groups of this size while performing a |
| 2133 | tree-reduction. If set to False, no tree-reduction will be used. |
| 2134 | Default is 8. |
| 2135 | |
| 2136 | Returns |
| 2137 | ------- |
| 2138 | a float representing the approximate number of elements |
| 2139 | """ |
| 2140 | return new_collection(self.expr.nunique_approx(split_every=split_every)) |
| 2141 | |
| 2142 | @derived_from(pd.DataFrame) |
| 2143 | def cumsum(self, axis=0, skipna=True, **kwargs): |
nothing calls this directly
no test coverage detected