When replacing a column, it seems the replacing ex...
# datascience
h
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:
Copy code
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
h
Thanks for the hint. It's still somewhat hard for me to discover/link these API bits.