Apply a function in-place to a DataFrame column and return a new dataframe with replaced column

I don’t think that this is really an in-place operation as you are changing the type. Regardless,

transform!(df,"b" => ByRow(my_func) => "b")

should do what you want.

2 Likes