Closed juliohm closed 1 year ago
I think this is causing an error because the ZScore function only works on continuous variables and Int is a categorical variable.
Maybe the transform function can be use to apply the ZScore transformation only to the b column of the NamedTuple, and to remove the a column from the result.
using TableTransforms
(a=rand(Int,3), b=rand(3)) |> transform(:b, ZScore)
The root of the issue is known, the fallback method for all ColwiseTransform types is performing assertions in the input table instead of in the selection.
Do you want to give it a try and fix it @vickydeka ? Here is the relevant function to modify:
@juliohm I would definitely like to give it a try!
Fixed by #160
MWE: