https://kotlinlang.org logo
Title
h

holgerbrandl

02/17/2023, 10:28 AM
When replacing a column, it seems the replacing expression is column based, whereas when adding a column we can do it rowwise. Does the API support replacing columns with an expression that mimics add? Example:
irisData
        .add("SpeciesWithPrefix"){ "prefix" +  "Species"<String>()} // record expression
        .replace("Species")
        .with { it.cast<String>().map { "prefix_" + it } } // same idea but here a column expression seems required
n

Nikita Klimenko [JB]

02/17/2023, 1:39 PM
h

holgerbrandl

02/17/2023, 3:43 PM
Thanks for the hint. It's still somewhat hard for me to discover/link these API bits.