I wish to perform some basic statistic functions on my table in Spotfire. For example: I want to calculate average of all values in column [A] and I need to have this value as variable in IronPython.
I can read all values in the column, sum them and calculate the average completely in IronPython, but since I would also like to use other Spotfire's statistical functions, I expected that I could somehow call Spotfire API and use expression (in the same manner that calculated column is created). Something like this:
expr = "Avg([{col}])".format(col = colName)
Now I would need a way to call this expression and store the result in a variable to use later.
In pseudo code:
colName = "Weight"
value = API.SomeFunction(expr)
I would be grateful for any hints and also for information if this is possible at all.