I define a function by the following code:
def func(Open,High,Low,Close,20)
xxxxxxxxxxxxxxxxxxxxxxxx
return x,y
There are two return results in the function “func()”, and I want to select these two results in one select clause. I write a statement as follows:
t=select TimeStamp,funcA(Open,High,Low,Close,20) as factorA,funcB(Open,High,Low,Close,20) as factorB, from xxx
The function is called twice in a select clause which will waste more time. Is there a method to get these two results by calling the function only once?