Here is an example that computes the mean of the speed and weight columns using this method: let means = dataFrame.grouped(by: species).aggregated( on: speed, weight, naming: { mean(($0)) }, transform: { (slice: DiscontiguousColumnSlice) -> Double? in slice.mean() } )
Topic:
Machine Learning & AI
SubTopic:
General
Tags: