map

Edit page Last modified: 14 January 2025

Creates List, DataFrame or DataColumn with values computed from rows of original DataFrame.

Map into List:

Map into DataColumn:

df.mapToColumn("year of birth") { 2021 - age }

See row expressions

Map into DataFrame:

df.mapToFrame {
    "year of birth" from 2021 - age
    age gt 18 into "is adult"
    name.lastName.length() into "last name length"
    "full name" from { name.firstName + " " + name.lastName }
    +city
}