| 91 | |
| 92 | |
| 93 | class DescribeNonNumeric(DescribeNumeric): |
| 94 | _parameters = ["frame", "split_every"] |
| 95 | |
| 96 | def _lower(self): |
| 97 | frame = self.frame |
| 98 | vcounts = ValueCounts(frame, split_every=self.split_every, sort=True) |
| 99 | count_unique = Size(Filter(vcounts, vcounts > 0)) |
| 100 | stats = [ |
| 101 | count_unique, |
| 102 | frame.count(split_every=self.split_every), |
| 103 | Head(vcounts, n=1), |
| 104 | ] |
| 105 | return DescribeNonNumericAggregate(frame._meta.name, *stats) |
| 106 | |
| 107 | |
| 108 | class DescribeNonNumericAggregate(DescribeNumericAggregate): |