MCPcopy Create free account
hub / github.com/datasweet/datatable / Aggregate

Method Aggregate

aggregate.go:114–122  ·  view source on GitHub ↗

Aggregate aggregates some field

(by ...AggregateBy)

Source from the content-addressed store, hash-verified

112
113// Aggregate aggregates some field
114func (dt *DataTable) Aggregate(by ...AggregateBy) (*DataTable, error) {
115 g := &Groups{
116 dt: dt,
117 groups: []*group{
118 &group{TakeAll: true},
119 },
120 }
121 return g.Aggregate(by...)
122}
123
124// Groups
125type Groups struct {

Callers

nothing calls this directly

Calls 1

AggregateMethod · 0.95

Tested by

no test coverage detected