Calculating averages of multiple non-contiguous row of table

I hadn’t seen that some of the values are null – that seems to be the reason the code is bonking. Checking in the documentation, I don’t notice an isnull() function in jython. Is there an elegant way to skip the value if it is nonnumeric? TIA D. Lewis