toStart

Moves columns, previously selected with move to the DataFrame start (on top-level).

Returns a new DataFrame with updated columns.

For more information: See move on the documentation website.

Examples:

df.move { age and weight }.toStart()
df.move { colsOf<String>() }.toStart()
df.move("age", "weight").toStart()

fun <T, C> MoveClause<T, C>.toStart(insideGroup: Boolean): DataFrame<T>

If insideGroup is true, moves columns previously selected with move to the start of their ColumnGroup. Else, selected columns will be moved to the start of their DataFrame (to the top-level).

Returns a new DataFrame with updated columns.

For more information: See move on the documentation website.

Examples:

df.move { age and weight }.toStart(true)
df.move { colsOf<String>() }.toStart(true)
df.move("age", "weight").toStart(false)

Parameters

insideGroup

If true, selected columns will be moved to the start remaining inside their group, else they will be moved to the start on top level.