asFrame
fun <T, C, R> Convert<T, DataRow<C>>.asFrame(expression: ColumnsContainer<T>.(ColumnGroup<C>) -> DataFrame<R>): DataFrame<T>
Converts column groups previously selected with convert as a DataFrame using a dataframe expression.
For more information: See convert on the documentation website.
Example:
// Add a column to selected column group "name".
df.convert { name }.asFrame { it.add("fullName") { "$firstName $lastName" } }Content copied to clipboard
Parameters
expression
The DataFrame Expression to replace the selected column group with.
fun <T, C, R> Update<T, DataRow<C>>.asFrame(expression: DataFrameExpression<C, DataFrame<R>>): DataFrame<T>
As Frame
Updates selected column group as a DataFrame with the given expression.
Provide a new value for every selected dataframe using a dataframe expression.
For example:
df.update{ name }.asFrame{ select{ lastName } }
For more information: See update on the documentation website.
Parameters
expression
The DataFrame Expression to replace the selected column group with.