What’s the ‘standard’ way to apply the transform
function to all columns of a certain type in a DataFrame?
For example, the best way to double all numeric columns I could come up with was:
df = DataFrame(a="hello", b=1, c=2, d="world");
transform!(df, names(df, (<:).(eltype.(eachcol(df)), Number)) .=> ByRow(x->2*x), renamecols=false)
Am I overlooking an obvious shortcut here? Also, how would I include a column containing missings?