Closed markm812 closed 2 years ago
I fixed. You can use my dev. I suggest the following implementation:
>>> import formulas
>>> weighted_sum = formulas.Parser().ast(f'=SUMPRODUCT(A,B)')[1].compile()
>>> weighted_sum([1,2,3],[1,2,3])
14.0
As an alternative, you can provide np.arrays instead of lists.
Hi, I was working on parsing the formular for SUMPRODUCT from Excel.
I called the function with the following line:
that gives the following:
which is not 14, the expected answer.
May I ask for specification on how to give proper input for the formular?