AnsweredAssumed Answered

How to write python expression and code block for Geometric Mean

Question asked by cyber1234 on Oct 9, 2018
Latest reply on Oct 25, 2018 by Dan_Patterson

I am building a model to calculate geometric mean for each shape file in model builder. How to do write Expression and Code Block which would:

 

Take in shapefile "City_1" and use all the values in Field "Area" and calculate n√a*b*c*d. ..... where n are number of values in field "Area" and a,b,c,d are all the value in field "Area"

Outcomes