Try df1[!,:col3]=...
This will replace the column with a new vector (of possibly different type) instead of assigning to the existing vector.
If that doesn’t work please include a MWE.
Try df1[!,:col3]=...
This will replace the column with a new vector (of possibly different type) instead of assigning to the existing vector.
If that doesn’t work please include a MWE.