MCPcopy Create free account
hub / github.com/dask/dask / DescribeNonNumeric

Class DescribeNonNumeric

dask/dataframe/dask_expr/_describe.py:93–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91
92
93class 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
108class DescribeNonNumericAggregate(DescribeNumericAggregate):

Callers 1

describeMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected