Binary Conversion Via transformation

I would like to have my value from my metrics having a binary conversion. For eg my metric A having values of 10 in a time series, i would like to break them into A.0 = false or 0, A.1 = true or 1, A.2 = true or 1. My source of metric is CSV hence i can’t do any pre processing. Required to do it on transformation.