The iris flower
@file:MavenRepository("bintray-plugins","http://jcenter.bintray.com")
@file:DependsOnMaven("de.mpicbg.scicomp:krangl:0.7")
import krangl.*
The first records in the input data (which is bundled with krangl) are
irisData
The structure of the input data is
irisData.glimpse()
Calculate mean petal
val summarizeDf: DataFrame = irisData
.groupBy("Species")
.summarize("mean_petal_width") { it["Petal.Width"].mean() }
Print the summarized data
summarizeDf.print()
Conclusion: Iris flowers of species virginica have on average the largest petal width.