Hi, I'm trying to calculate the standard deviation of three column fields while ignoring zero (or null) values. I've tired various iterations of the expression code below but keep getting syntax errors.
statistics.stdev(d for d in (!ADFgal_2017_N!,!ADFgal_2018_N!,!ADFgal_2019_N!) if d != 0)