Hi,
I am trying to do an in-place transformation on a subset of a dataframe.
df_filtered_view = filter(args..., df, view = true)
transform!(df_filtered_view, args...)
However, it is not possible to use transform!
on a SubDataFrame
. I know I can add the filtering column in the transform!
function to do the filtering subject to some condition. However, since my transformation function uses ByRow
I thought it would be more efficient to filter and then transform, rather than use ByRow
on a bunch on unnecessary rows (the rows that don’t meet the filtering criterion don’t need to be modified).
Any thoughts?