into

infix inline fun <reified R> R.into(name: String): NamedValue

Adds the result of the aggregation operation to the resulting DataFrame or DataRow as a new column.

Aggregated values can be either simple values, data rows or even data frames. Including them in the result using into will lead to creating a value column, a column group, or a frame column respectively in the resulting DataFrame or DataRow while preserving the original structure at higher levels.

Parameters

name

The name of the new column.


infix inline fun <reified R> R.into(column: ColumnAccessor<R>): NamedValue
infix inline fun <reified R> R.into(column: KProperty<R>): NamedValue

Deprecated

It's recommended to migrate to the String or Extension Properties Access API https://kotlin.github.io/dataframe/apilevels.html