I have created a python function to exponentiate a matrix and imported it as a user defined function in Excel using DataNitro. However, when I use this formula I get the result as a python list in one cell.
Is it possible to create array formulas for excel using DataNitro similar in lines to MMULT or MINVERSE?
Below is my python code and a snapshot of the excel sheet:
functions.py
import numpy as np
def mat_expo(x,n):
if(n==2):
return mat_mult(x,x)
else:
return mat_mult(x,mat_expo(x,n-1))
def mat_mult(x,y):
return np.dot(x,y)
Excel Sheet: